aboutsummaryrefslogtreecommitdiff
path: root/source/spc7110.c
diff options
context:
space:
mode:
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);