Some fixes

This commit is contained in:
Federico Cecchetto 2022-04-08 18:24:35 +02:00
parent b0827b80dc
commit b88c8d3eb0
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}
};
}

View File

@ -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)