mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-05 21:38:17 +01:00
fix broken 'auto-save' feature. works now!
This commit is contained in:
parent
b19d403991
commit
cbee9742bb
@ -21,6 +21,7 @@
|
||||
#include "gcaudio.h"
|
||||
#include "menu.h"
|
||||
#include "fceustate.h"
|
||||
#include "fceuram.h"
|
||||
|
||||
// Original NES controller buttons
|
||||
// All other pads are mapped to this
|
||||
@ -427,8 +428,19 @@ void GetJoy()
|
||||
{
|
||||
StopAudio();
|
||||
|
||||
if (GCSettings.AutoLoad == 1)
|
||||
if (GCSettings.AutoSave == 1)
|
||||
{
|
||||
SaveRAM(GCSettings.SaveMethod, SILENT);
|
||||
}
|
||||
else if (GCSettings.AutoSave == 2)
|
||||
{
|
||||
SaveState(GCSettings.SaveMethod, SILENT);
|
||||
}
|
||||
else if(GCSettings.AutoSave == 3)
|
||||
{
|
||||
SaveRAM(GCSettings.SaveMethod, SILENT);
|
||||
SaveState(GCSettings.SaveMethod, SILENT);
|
||||
}
|
||||
|
||||
MainMenu(4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user