Pack non-required global scripts on their map disk rather than disk 1, because disk 1 got too tight.

This commit is contained in:
Martin Haye 2021-01-25 07:06:24 -08:00
parent 8933f2ef38
commit 3762cc5edb

View File

@ -2451,7 +2451,7 @@ export def callGlobalFunc(moduleNum, arg1, arg2, arg3)#1
// First load the module
if renderLoaded; flipToPage1(); fin
mmgr(START_LOAD, 1) // code is in partition 1
mmgr(START_LOAD, moduleNum <= LAST_REQ_GS_MOD ?? 1 :: curMapPartition)
pModule = mmgr(QUEUE_LOAD, moduleNum<<8 | RES_TYPE_MODULE)
mmgr(FINISH_LOAD, 0)