Some fixes
This commit is contained in:
parent
b0827b80dc
commit
b88c8d3eb0
@ -296,6 +296,8 @@ namespace logfile
|
||||
public:
|
||||
void post_unpack() override
|
||||
{
|
||||
utils::hook::jump(SELECT_VALUE(0x140376655, 0x140444645), utils::hook::assemble(vm_execute_stub), true);
|
||||
|
||||
if (game::environment::is_sp())
|
||||
{
|
||||
return;
|
||||
@ -308,8 +310,6 @@ namespace logfile
|
||||
|
||||
utils::hook::call(0x140484EC0, g_shutdown_game_stub);
|
||||
utils::hook::call(0x1404853C1, g_shutdown_game_stub);
|
||||
|
||||
utils::hook::jump(SELECT_VALUE(0x140376655, 0x140444645), utils::hook::assemble(vm_execute_stub), true);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ namespace scripting::lua::engine
|
||||
void start()
|
||||
{
|
||||
stop();
|
||||
|
||||
running = true;
|
||||
for (const auto& path : filesystem::get_search_paths())
|
||||
{
|
||||
load_scripts(path + "/scripts/");
|
||||
@ -62,8 +62,6 @@ namespace scripting::lua::engine
|
||||
load_scripts(path + "/scripts/mp/");
|
||||
}
|
||||
}
|
||||
|
||||
running = true;
|
||||
}
|
||||
|
||||
void notify(const event& e)
|
||||
|
Loading…
Reference in New Issue
Block a user