summaryrefslogtreecommitdiff
path: root/src/scene.rs
diff options
context:
space:
mode:
authorMica White <botahamec@outlook.com>2026-07-29 21:19:57 -0400
committerMica White <botahamec@outlook.com>2026-07-29 21:19:57 -0400
commitc687e2aba30ca231b03288108b632f1bad464028 (patch)
tree6134233d24211510eb674417d3374615a74b8268 /src/scene.rs
parent20ecfc902cc5a654a079e9ba22c41179aca221bb (diff)
Script optimizationHEADmain
Diffstat (limited to 'src/scene.rs')
-rw-r--r--src/scene.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/scene.rs b/src/scene.rs
index 89a0d99..807628d 100644
--- a/src/scene.rs
+++ b/src/scene.rs
@@ -1,3 +1,5 @@
+use std::path::Path;
+
use rustc_hash::FxHashSet;
use serde::{Deserialize, Serialize};
@@ -45,7 +47,7 @@ pub fn preload_scene(
pub fn is_scene_loaded(
scenes: &[Scene],
scripts: &ScriptManager,
- files: &FileManager,
+ loaded_files: &[Box<Path>],
id: usize,
) -> bool {
let scene = &scenes[id];
@@ -54,7 +56,7 @@ pub fn is_scene_loaded(
.required
.iter()
.cloned()
- .all(|script_id| scripts.is_script_loaded(script_id, files))
+ .all(|script_id| scripts.is_script_loaded(script_id, loaded_files))
}
pub fn switch_scenes(