Store script directory in app context
This enables easier testing of the dev branch by providing a custom script directory. Additionally, a Launch file is now searched for in nearby locations and if found, used to determine a custom script directory.
This commit is contained in:
1 parent
e395e729e8
commit
031df6ed9c
9 files changed
+118
-79
No files matched your search
+1
-1
@@ -34,7 +34,7 @@ impl PoBMode {
|
||||
is_dpi_aware: false,
|
||||
};
|
||||
|
||||
let lua_instance = LuaInstance::new()?;
|
||||
let lua_instance = LuaInstance::new(&app_state.script_dir)?;
|
||||
|
||||
let mut pob_ctx = PoBContext::new(app_state, &mut state);
|
||||
lua_instance.launch(&mut pob_ctx)?;
|
||||
|
||||
Reference in new issue
Block a user