diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/loadzip.cpp | 4 | ||||
-rw-r--r-- | src/memmap.cpp | 4 | ||||
-rw-r--r-- | src/screenshot.c | 8 | ||||
-rw-r--r-- | src/sdd1.cpp | 2 |
4 files changed, 10 insertions, 8 deletions
diff --git a/src/loadzip.cpp b/src/loadzip.cpp index 1bbcaac..6e082d7 100644 --- a/src/loadzip.cpp +++ b/src/loadzip.cpp @@ -65,7 +65,7 @@ bool8 LoadZip(const char* zipname, int32 *TotalFileSize, int32 *headers) -{ +{/* *TotalFileSize = 0; *headers = 0; @@ -216,5 +216,7 @@ bool8 LoadZip(const char* zipname, unzClose(file); return (TRUE); + */ + return (FALSE); } #endif diff --git a/src/memmap.cpp b/src/memmap.cpp index dffbbd9..e561772 100644 --- a/src/memmap.cpp +++ b/src/memmap.cpp @@ -1049,9 +1049,9 @@ bool8_32 CMemory::SaveSRAM (const char *filename) {
fwrite ((char *) ::SRAM, size, 1, file);
fclose (file);
- sync();
+ //sync();
#if defined(__linux)
- chown (filename, getuid (), getgid ());
+ //chown (filename, getuid (), getgid ());
#endif
return (TRUE);
}
diff --git a/src/screenshot.c b/src/screenshot.c index ab169cf..14a4efa 100644 --- a/src/screenshot.c +++ b/src/screenshot.c @@ -17,7 +17,7 @@ void getScreenShot(unsigned short *screen) { screen += 32;
if (!screenShot) {
- screenShot = gCreateBitmap(SS_WIDTH, SS_HEIGHT, 32);
+ screenShot = 0;//gCreateBitmap(SS_WIDTH, SS_HEIGHT, 32);
if (!screenShot) return;
}
@@ -40,7 +40,7 @@ int saveScreenShot() { if (!screenShot) return -1;
// get filename of last loaded ROM (the running one)
- getConfigValue(CONFIG_LASTLOADED, fn, sizeof(fn));
+ //getConfigValue(CONFIG_LASTLOADED, fn, sizeof(fn));
// set file ext to .png
ext = strrchr(fn, '.');
if (!ext) ext = &fn[strlen(fn)];
@@ -48,7 +48,7 @@ int saveScreenShot() { // compose screenshot file's full path
sprintf(png_fn, "%s%s", getScreenShotsDir(), strrchr(fn, '/'));
- ret = save_png(screenShot, png_fn);
+ ret = 0;//save_png(screenShot, png_fn);
sync();
return ret;
@@ -66,6 +66,6 @@ const char *getScreenShotsDir() { }
void destroyScreenShot() {
- gDestroyBitmap(screenShot);
+ //gDestroyBitmap(screenShot);
screenShot = NULL;
}
diff --git a/src/sdd1.cpp b/src/sdd1.cpp index 8c79750..aa3da87 100644 --- a/src/sdd1.cpp +++ b/src/sdd1.cpp @@ -110,7 +110,7 @@ void S9xSDD1SaveLoggedData () Memory.SDD1LoggedDataCount, fs); fclose (fs); #if defined(__linux) - chown (S9xGetFilename (".dat"), getuid (), getgid ()); + //chown (S9xGetFilename (".dat"), getuid (), getgid ()); #endif } Memory.SDD1LoggedDataCountPrev = Memory.SDD1LoggedDataCount; |