diff options
author | aliaspider | 2014-11-02 07:00:31 +0100 |
---|---|---|
committer | aliaspider | 2014-11-02 07:00:31 +0100 |
commit | d2c9eb147defae3d98df43730372dfce4a224cde (patch) | |
tree | 08b7736fa41959d3f23bdd717859ef08e96cab55 /source | |
parent | 188fe860e0af98aa51a727dbda794f479a665617 (diff) | |
download | snes9x2005-d2c9eb147defae3d98df43730372dfce4a224cde.tar.gz snes9x2005-d2c9eb147defae3d98df43730372dfce4a224cde.tar.bz2 snes9x2005-d2c9eb147defae3d98df43730372dfce4a224cde.zip |
small cleanup
Diffstat (limited to 'source')
-rw-r--r-- | source/display.h | 1 | ||||
-rw-r--r-- | source/spc7110.c | 21 |
2 files changed, 6 insertions, 16 deletions
diff --git a/source/display.h b/source/display.h index f6e9a8a..beb6487 100644 --- a/source/display.h +++ b/source/display.h @@ -120,7 +120,6 @@ const char* S9xBasename(const char* filename); int S9xFStrcmp(FILE*, const char*); const char* S9xGetHomeDirectory(); -const char* S9xGetSnapshotDirectory(); const char* S9xGetSRAMFilename(); const char* S9xGetFilename(const char* extension); diff --git a/source/spc7110.c b/source/spc7110.c index b2181d9..a53198c 100644 --- a/source/spc7110.c +++ b/source/spc7110.c @@ -99,14 +99,12 @@ #define chdir _chdir #define getcwd _getcwd #endif -#define FREEZEFOLDER GUI.FreezeFileDir //zinx suggested this, for *nix compatibility #define PATH_MAX MAX_PATH #else // Unix #include "display.h" #include <limits.h> #include <unistd.h> -#define FREEZEFOLDER S9xGetSnapshotDirectory () #endif const char* S9xGetFilename(const char*); @@ -398,19 +396,12 @@ void ReadPackData() char dir [_MAX_DIR + 1]; char fname [_MAX_FNAME + 1]; char ext [_MAX_EXT + 1]; - if (strlen(FREEZEFOLDER)) - { - //splitpath (Memory.ROMFilename, drive, dir, fname, ext); - strcpy(name, FREEZEFOLDER); - strcat(name, "/"); - } - else - { - splitpath(Memory.ROMFilename, drive, dir, fname, ext); - strcpy(name, drive); - //strcat(filename, "\\"); - strcat(name, dir); - } + + splitpath(Memory.ROMFilename, drive, dir, fname, ext); + strcpy(name, drive); + //strcat(filename, "\\"); + strcat(name, dir); + strcat(name, pfold); char bfname[11]; sprintf(bfname, "%06X.bin", table); |