feat: allow loading all (C) modules

This commit is contained in:
Ryan 2025-03-01 23:21:39 -05:00
parent 8162995e78
commit 59e0d597a1
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -49,7 +49,7 @@ async fn main() -> anyhow::Result<()> {
let args = arguments::Arguments::parse(); let args = arguments::Arguments::parse();
let script_path = args.script.unwrap_or(PathBuf::from(DEFAULT_SCRIPT_PATH)); let script_path = args.script.unwrap_or(PathBuf::from(DEFAULT_SCRIPT_PATH));
let event_listeners = Arc::new(RwLock::new(HashMap::new())); let event_listeners = Arc::new(RwLock::new(HashMap::new()));
let lua = Lua::new(); let lua = unsafe { Lua::unsafe_new() };
let globals = lua.globals(); let globals = lua.globals();
globals.set("script_path", &*script_path)?; globals.set("script_path", &*script_path)?;