* AutoSave * * Automatically saves RAM/state when returning from in-game to the menu ***************************************************************************/
| 662 | * Automatically saves RAM/state when returning from in-game to the menu |
| 663 | ***************************************************************************/ |
| 664 | void 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 |
no test coverage detected