mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-25 07:10:00 -06:00
more procrastinating before actually starting savestatez0ring wifi.
I need to pee
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user