refactor(content): extract per-file scan functions for incremental updates
split scan_one_mod, scan_one_resource_pack, scan_one_shader, and scan_one_world out of their directory-level scan functions. the directory-level wrappers now delegate to these. this allows the file watcher to scan individual new files without rescanning the entire directory.
This commit is contained in:
1 parent
1019169100
commit
52747158e9
6 files changed
+114
-86
No files matched your search
@@ -7,9 +7,10 @@ pub mod shaders;
|
||||
pub mod worlds;
|
||||
|
||||
pub use mods::{ContentEntry, scan_mods, toggle_entry};
|
||||
pub use resource_packs::scan_resource_packs;
|
||||
pub use shaders::scan_shaders;
|
||||
pub use worlds::scan_worlds;
|
||||
pub use mods::scan_one_mod;
|
||||
pub use resource_packs::{scan_resource_packs, scan_one_resource_pack};
|
||||
pub use shaders::{scan_shaders, scan_one_shader};
|
||||
pub use worlds::{scan_worlds, scan_one_world};
|
||||
|
||||
use std::io::Read;
|
||||
|
||||
|
||||
Reference in new issue
Block a user