From 61a9f31785722afec9f06fc02a51baebbc169cd8 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 1 Nov 2009 23:33:13 +0000 Subject: [PATCH] checking in an attempt to fix Ram Watch recent menu, warning! this breaks the window build. --- src/drivers/win/config.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/drivers/win/config.cpp b/src/drivers/win/config.cpp index c10c6651..546f13e1 100644 --- a/src/drivers/win/config.cpp +++ b/src/drivers/win/config.cpp @@ -91,6 +91,9 @@ extern int RomFreezeColorR; extern int RomFreezeColorG; extern int RomFreezeColorB; +//adelikat: Hacky fix for Ram Watch recent menu +char* ramWatchRecent[] = {0, 0, 0, 0, 0}; + //Structure that contains configuration information static CFGSTRUCT fceuconfig[] = { @@ -123,6 +126,12 @@ static CFGSTRUCT fceuconfig[] = { ACS(recent_movie[3]), ACS(recent_movie[4]), + ACS(ramWatchRecent[0]), + ACS(ramWatchRecent[1]), + ACS(ramWatchRecent[2]), + ACS(ramWatchRecent[3]), + ACS(ramWatchRecent[4]), + AC(gNoBGFillColor), AC(ntsccol),AC(ntsctint),AC(ntschue), @@ -291,6 +300,13 @@ static CFGSTRUCT fceuconfig[] = { void SaveConfig(const char *filename) { + //adelikat: Hacky fix for Ram Watch recent menu + for (int x = 0; x < 5; x++) + { + strcpy(ramWatchRecent[x],rw_recent_files[x]); + } + //----------------------------------- + SaveFCEUConfig(filename,fceuconfig); } @@ -301,5 +317,12 @@ void LoadConfig(const char *filename) LoadFCEUConfig(filename, fceuconfig); FCEUI_SetNTSCTH(ntsccol, ntsctint, ntschue); + + //adelikat:Hacky fix for Ram Watch recent menu + for (int x = 0; x < 5; x++) + { + strncpy(rw_recent_files[x], ramWatchRecent[x]); + } + //----------------------------------- }