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
-1
@@ -10,7 +10,13 @@ pub mod manager;
|
||||
pub mod models;
|
||||
pub mod screenshots;
|
||||
|
||||
pub use content::{scan_mods, toggle_entry, ContentEntry, scan_resource_packs, scan_shaders, scan_worlds};
|
||||
pub use content::{
|
||||
ContentEntry, toggle_entry,
|
||||
scan_mods, scan_one_mod,
|
||||
scan_resource_packs, scan_one_resource_pack,
|
||||
scan_shaders, scan_one_shader,
|
||||
scan_worlds, scan_one_world,
|
||||
};
|
||||
pub use launch::LaunchError;
|
||||
pub use loader::{get_installer, GameVersion, ModLoaderInstaller, VanillaInstaller};
|
||||
pub use manager::{InstanceError, InstanceManager};
|
||||
|
||||
Reference in new issue
Block a user