From cbee9742bbffc43aae4e513fcdc52c09d06733f6 Mon Sep 17 00:00:00 2001 From: dborth Date: Mon, 8 Sep 2008 19:59:50 +0000 Subject: [PATCH] fix broken 'auto-save' feature. works now! --- source/ngc/pad.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/source/ngc/pad.c b/source/ngc/pad.c index 5027153..3e4ac5d 100644 --- a/source/ngc/pad.c +++ b/source/ngc/pad.c @@ -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); }