static int StateAction(StateMem *sm, int load, int data_only) { if(Genie_BIOSInstalled()) { if(!data_only) MDFN_DispMessage(_("Cannot use states in GG Screen.")); return(0); } if(!X6502_StateAction(sm, load, data_only)) return(0); if(!MDFNPPU_StateAction(sm, load, data_only)) return(0); if(!MDFNSND_StateAction(sm, load, data_only)) return(0); if(!load || load >= 0x0500) { if(!NESINPUT_StateAction(sm, load, data_only)) return(0); } if(GameInterface->StateAction) { if(!GameInterface->StateAction(sm, load, data_only)) return(0); } return(1); }
static void StateAction(StateMem *sm, const unsigned load, const bool data_only) { Genie_StateAction(sm, load, data_only); X6502_StateAction(sm, load, data_only); MDFNPPU_StateAction(sm, load, data_only); MDFNSND_StateAction(sm, load, data_only); NESINPUT_StateAction(sm, load, data_only); if(GameInterface.StateAction) { GameInterface.StateAction(sm, load, data_only); } }