aboutsummaryrefslogtreecommitdiff
path: root/source/spc7110.c
diff options
context:
space:
mode:
authoraliaspider2014-11-02 07:00:31 +0100
committeraliaspider2014-11-02 07:00:31 +0100
commitd2c9eb147defae3d98df43730372dfce4a224cde (patch)
tree08b7736fa41959d3f23bdd717859ef08e96cab55 /source/spc7110.c
parent188fe860e0af98aa51a727dbda794f479a665617 (diff)
downloadsnesemu-d2c9eb147defae3d98df43730372dfce4a224cde.tar.gz
snesemu-d2c9eb147defae3d98df43730372dfce4a224cde.tar.bz2
snesemu-d2c9eb147defae3d98df43730372dfce4a224cde.zip
small cleanup
Diffstat (limited to 'source/spc7110.c')
-rw-r--r--source/spc7110.c21
1 files changed, 6 insertions, 15 deletions
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);