This commit is contained in:
kristof 2025-04-03 12:36:53 +02:00
parent d3c5f97469
commit 452150a2fc
2 changed files with 1 additions and 2 deletions

View File

@ -13,7 +13,7 @@ pub fn main() -> Result<(), String> {
println!("Loading Rhai scripts from scripts directory...");
// Get the scripts directory path
let scripts_dir = Path::new("rhai_engine/examples/loadscripts/scripts");
let scripts_dir = Path::new("examples/loadscripts/scripts");
// Use the ScriptManager to load all scripts from the directory
let loaded_scripts = script_manager.load_scripts_from_directory(scripts_dir)?;

View File

@ -3,7 +3,6 @@ use std::collections::HashMap;
use std::path::Path;
use std::sync::{Arc, RwLock};
use std::fs;
use std::io;
/// Type alias for a Rhai function that can be called from Rust
pub type RhaiFn = Box<dyn Fn(Vec<Dynamic>) -> Result<Dynamic, String>>;