Created
September 3, 2011 01:21
-
-
Save bpartridge/1190351 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 8a69546552b12261cc40dcfca96fb4d235e7ca0e Mon Sep 17 00:00:00 2001 | |
From: Brenton Partridge <[email protected]> | |
Date: Tue, 30 Aug 2011 21:43:04 -0700 | |
Subject: [PATCH] Changed interface for ADVANsCEne to compile on OS X | |
--- | |
src/NDSSystem.cpp | 2 +- | |
src/mc.cpp | 2 +- | |
src/mc.h | 2 +- | |
3 files changed, 3 insertions(+), 3 deletions(-) | |
diff --git a/src/NDSSystem.cpp b/src/NDSSystem.cpp | |
index 9befe36..e6178ec 100644 | |
--- a/src/NDSSystem.cpp | |
+++ b/src/NDSSystem.cpp | |
@@ -578,7 +578,7 @@ int NDS_LoadROM(const char *filename, const char *logicalFilename) | |
buf[2] = gameInfo.header.gameCode[2]; | |
buf[3] = gameInfo.header.gameCode[3]; | |
buf[4] = 0; | |
- if (advsc.check(buf)) | |
+ if (advsc._check(buf)) | |
{ | |
u8 sv = advsc.getSaveType(); | |
printf("ADVANsCEne database:\n"); | |
diff --git a/src/mc.cpp b/src/mc.cpp | |
index df1377c..b43eede 100644 | |
--- a/src/mc.cpp | |
+++ b/src/mc.cpp | |
@@ -1253,7 +1253,7 @@ void BackupDevice::forceManualBackupType() | |
} | |
// ============================================= ADVANsCEne | |
-u8 ADVANsCEne::check(const char *serial, u32 crc) | |
+u8 ADVANsCEne::_check(const char *serial, u32 crc) | |
{ | |
FILE *fp = fopen(database_path, "rb"); | |
if (fp) | |
diff --git a/src/mc.h b/src/mc.h | |
index 388fff5..8d4e872 100644 | |
--- a/src/mc.h | |
+++ b/src/mc.h | |
@@ -83,7 +83,7 @@ public: | |
} | |
void setDatabase(const char *path) { strcpy(database_path, path); } | |
u32 convertDB(const char *in_filaname); | |
- u8 check(const char *serial, u32 crc = 0); | |
+ u8 _check(const char *serial, u32 crc = 0); | |
u32 getSaveType() { return saveType; } | |
u32 getCRC32() { return crc32; } | |
}; | |
-- | |
1.7.4.4+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment