MCPcopy Create free account
hub / github.com/dborth/fceugx / AutoSave

Function AutoSave

source/menu.cpp:664–683  ·  view source on GitHub ↗

* AutoSave * * Automatically saves RAM/state when returning from in-game to the menu ***************************************************************************/

Source from the content-addressed store, hash-verified

662 * Automatically saves RAM/state when returning from in-game to the menu
663 ***************************************************************************/
664void AutoSave()
665{
666 if (GCSettings.AutoSave == AUTOSAVE_RAM)
667 {
668 SaveRAMAuto(SILENT);
669 }
670 else if (GCSettings.AutoSave == AUTOSAVE_STATE)
671 {
672 if (WindowPrompt("Save", "Save State?", "Save", "Don't Save") )
673 SaveStateAuto(NOTSILENT);
674 }
675 else if (GCSettings.AutoSave == AUTOSAVE_BOTH)
676 {
677 if (WindowPrompt("Save", "Save RAM and State?", "Save", "Don't Save") )
678 {
679 SaveRAMAuto(NOTSILENT);
680 SaveStateAuto(NOTSILENT);
681 }
682 }
683}
684
685/****************************************************************************
686 * OnScreenKeyboard

Callers 1

MenuGameFunction · 0.85

Calls 3

SaveRAMAutoFunction · 0.85
WindowPromptFunction · 0.85
SaveStateAutoFunction · 0.85

Tested by

no test coverage detected