From 7b69790effc02c6c2cd19b344b4afc1d5332052d Mon Sep 17 00:00:00 2001 From: dborth Date: Tue, 9 Sep 2008 18:03:41 +0000 Subject: [PATCH] look for CRC state, change vernum --- readme.txt | 8 +++++++- source/ngc/fceuconfig.h | 4 ++-- source/ngc/fceustate.c | 7 +++++++ source/ngc/filesel.c | 4 ---- 4 files changed, 16 insertions(+), 7 deletions(-) diff --git a/readme.txt b/readme.txt index 0edc951..a00cfc9 100644 --- a/readme.txt +++ b/readme.txt @@ -1,7 +1,7 @@ ¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤ - FCE Ultra GX - - Version 2.0.1 + Version 2.0.2 (Under GPL License) ¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø,¸,ø¤°`°¤ø,¸¸,ø¤ @@ -29,6 +29,12 @@ SNES9x GX and Genesis Plus GX projects. |0O×øo· UPDATE HISTORY ·oø×O0| `¨•¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨¨ ¨¨¨¨¨¨¨¨¨¨¨¨¨' +[What's New 2.0.2] +* Fixed network freeze-up problem +* Zapper now mapped to A and B +* Fixed auto-save feature +* Will now attempt to load old save states with CRC filename + [What's New 2.0.1] * Zapper support! Turn this on in the Controller Settings - most games require you to have the Zapper on Port 2. Thanks go to aksommerville whose diff --git a/source/ngc/fceuconfig.h b/source/ngc/fceuconfig.h index 69cf64a..f6b031d 100644 --- a/source/ngc/fceuconfig.h +++ b/source/ngc/fceuconfig.h @@ -15,8 +15,8 @@ void DefaultSettings (); -#define VERSIONNUM "2.0.1" -#define VERSIONSTR "FCE Ultra GX 2.0.1" +#define VERSIONNUM "2.0.2" +#define VERSIONSTR "FCE Ultra GX 2.0.2" #define NOTSILENT 0 #define SILENT 1 diff --git a/source/ngc/fceustate.c b/source/ngc/fceustate.c index f626148..08e74e9 100644 --- a/source/ngc/fceustate.c +++ b/source/ngc/fceustate.c @@ -335,6 +335,13 @@ bool LoadState (int method, bool silent) ChangeFATInterface(method, NOTSILENT); sprintf (filepath, "%s/%s/%s.fcs", ROOTFATDIR, GCSettings.SaveFolder, romFilename); offset = LoadBufferFromFAT (filepath, silent); + + if(offset == 0) // file not found + { + // look for CRC save + sprintf (filepath, "%08x.fcs", iNESGameCRC32); + offset = LoadBufferFromFAT (filepath, silent); + } } else if(method == METHOD_SMB) { diff --git a/source/ngc/filesel.c b/source/ngc/filesel.c index 8a2cc96..8f2aba3 100644 --- a/source/ngc/filesel.c +++ b/source/ngc/filesel.c @@ -325,10 +325,6 @@ int FileSelector (int method) if (GCMemROM() >= 0) { - //hasloaded = 1; // indicator for memmap.cpp - //Memory.LoadROM ("BLANK.SMC"); - //Memory.LoadSRAM ("BLANK"); - //haverom = 1; return 1; } else