Save creator jobs and bug fixes (#713)

* feat(Session): Session info serialization
* feat(Creator): Save and load jobs to file
* fix(Creator): Actually load the job
* fix(Creator): Try to fix loading
* fix(ScriptFunction): Fix memory corruption due to low stack size
* fix(Creator): Fix "No translation."
* fix(NativeHooks): Fix softlock when loading Cayo Perico
* chore(Toxic): Remove net time test for now
This commit is contained in:
maybegreat48
2022-12-17 14:47:01 +00:00
committed by GitHub
parent fac091ba6f
commit 808878ea63
22 changed files with 389 additions and 46 deletions

View File

@ -21,22 +21,6 @@ namespace big
src->set_return_value(return_value);
}
void NETWORK_HAS_RECEIVED_HOST_BROADCAST_DATA(rage::scrNativeCallContext* src)
{
if (SCRIPT::GET_HASH_OF_THIS_SCRIPT_NAME() == RAGE_JOAAT("freemode") && g->session.force_script_host)
{
g_fiber_pool->queue_job([]
{
scripts::force_host(RAGE_JOAAT("freemode"));
if (auto script = gta_util::find_script_thread(RAGE_JOAAT("freemode")); script && script->m_net_component)
script->m_net_component->block_host_migration(true);
});
}
*scr_globals::gsbd.as<int*>() = 4;
src->set_return_value<BOOL>(TRUE);
}
void NETWORK_SET_THIS_SCRIPT_IS_NETWORK_SCRIPT(rage::scrNativeCallContext* src)
{
if (rage::scrThread::get() && rage::scrThread::get()->m_handler)