Skip to content

Instantly share code, notes, and snippets.

@Themaister
Created April 15, 2012 19:46
Show Gist options
  • Select an option

  • Save Themaister/2394484 to your computer and use it in GitHub Desktop.

Select an option

Save Themaister/2394484 to your computer and use it in GitHub Desktop.
From a140e58c748880daf2a75bb16d593146cb8165a1 Mon Sep 17 00:00:00 2001
From: Themaister <[email protected]>
Date: Sun, 15 Apr 2012 21:36:46 +0200
Subject: [PATCH 1/3] Fix build for Linux.
Removes seemingly useless usage of chown().
---
memmap.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/memmap.cpp b/memmap.cpp
index 54f8358..72196bb 100644
--- a/memmap.cpp
+++ b/memmap.cpp
@@ -2167,9 +2167,6 @@ bool8 CMemory::SaveSRAM (const char *filename)
size_t ignore;
ignore = fwrite((char *) Multi.sramB, size, 1, file);
fclose(file);
- #ifdef __linux
- ignore = chown(name, getuid(), getgid());
- #endif
}
strcpy(ROMFilename, temp);
@@ -2187,9 +2184,6 @@ bool8 CMemory::SaveSRAM (const char *filename)
size_t ignore;
ignore = fwrite((char *) SRAM, size, 1, file);
fclose(file);
- #ifdef __linux
- ignore = chown(sramName, getuid(), getgid());
- #endif
if (Settings.SRTC || Settings.SPC7110RTC)
SaveSRTC();
--
1.7.10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment