more procrastinating before actually starting savestatez0ring wifi.

I need to pee
This commit is contained in:
StapleButter
2018-10-18 03:09:03 +02:00
parent 3a54b9178b
commit 86f5155f72

View File

@ -396,6 +396,8 @@ bool DoSavestate_Scheduler(Savestate* file)
SchedEvent* evt = &SchedList[i];
u32 funcid = -1;
if (evt->Func)
{
for (int j = 0; eventfuncs[j]; j++)
{
if (evt->Func == eventfuncs[j])
@ -409,6 +411,7 @@ bool DoSavestate_Scheduler(Savestate* file)
printf("savestate: VERY BAD!!!!! FUNCTION POINTER FOR EVENT %d NOT IN HACKY LIST. CANNOT SAVE. SMACK STAPLEBUTTER.\n", i);
return false;
}
}
file->Var32(&funcid);
file->Var32((u32*)&evt->WaitCycles);
@ -424,6 +427,8 @@ bool DoSavestate_Scheduler(Savestate* file)
u32 funcid;
file->Var32(&funcid);
if (funcid != -1)
{
for (int j = 0; ; j++)
{
if (!eventfuncs[j])
@ -435,6 +440,9 @@ bool DoSavestate_Scheduler(Savestate* file)
}
evt->Func = eventfuncs[funcid];
}
else
evt->Func = NULL;
file->Var32((u32*)&evt->WaitCycles);
file->Var32(&evt->Param);