mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-07 14:28:18 +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 "gcaudio.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
#include "fceustate.h"
|
#include "fceustate.h"
|
||||||
|
#include "fceuram.h"
|
||||||
|
|
||||||
// Original NES controller buttons
|
// Original NES controller buttons
|
||||||
// All other pads are mapped to this
|
// All other pads are mapped to this
|
||||||
@ -427,8 +428,19 @@ void GetJoy()
|
|||||||
{
|
{
|
||||||
StopAudio();
|
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);
|
SaveState(GCSettings.SaveMethod, SILENT);
|
||||||
|
}
|
||||||
|
|
||||||
MainMenu(4);
|
MainMenu(4);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user