void HK_StateLoadSlot(int num, bool justPressed) { if (romloaded && justPressed) { BOOL wasPaused = paused; Pause(); loadstate_slot(num); //Loadstate lastSaveState = num; //Set last savestate used UpdateToolWindows(); if(!wasPaused) Unpause(); else Display(); AutoFrameSkip_IgnorePreviousDelay(); } }
/* MENU SAVES ***** ***** ***** ***** */ void on_loadstateXX_activate (GtkMenuItem *m, gpointer d) { int slot = dyn_CAST(int,d); loadstate_slot(slot); }