fix broken 'auto-save' feature. works now!

This commit is contained in:
dborth 2008-09-08 19:59:50 +00:00
parent b19d403991
commit cbee9742bb

View File

@ -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);
}