summaryrefslogtreecommitdiff
path: root/macosx/Source
diff options
context:
space:
mode:
authorCarter Li <zhangsongcui3371@sina.com>2016-05-13 00:11:59 +0800
committerCarter Li <zhangsongcui3371@sina.com>2016-05-13 00:11:59 +0800
commitee328ce95aaa6f7461466a8d110f745e967fe88b (patch)
tree08f1b60a9670c5b5887db128725b9cf7b7fe205d /macosx/Source
parentb5a738748175a460f856a1ed8a2e29fa26ebfb14 (diff)
Fix build on OSX
Tested on OSX 10.11.4, Xcode v7.3
Diffstat (limited to 'macosx/Source')
-rw-r--r--macosx/Source/PcsxrMemCardArray.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/macosx/Source/PcsxrMemCardArray.m b/macosx/Source/PcsxrMemCardArray.m
index cf01e15b..83a9f6c5 100644
--- a/macosx/Source/PcsxrMemCardArray.m
+++ b/macosx/Source/PcsxrMemCardArray.m
@@ -16,11 +16,11 @@ static inline void CopyMemcardData(char *from, char *to, int srci, int dsti, cha
{
// header
memmove(to + (dsti + 1) * 128, from + (srci + 1) * 128, 128);
- SaveMcd(str, to, (dsti + 1) * 128, 128);
+ SaveMcd(0, str, to, (dsti + 1) * 128, 128);
// data
memmove(to + (dsti + 1) * 1024 * 8, from + (srci+1) * 1024 * 8, 1024 * 8);
- SaveMcd(str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
+ SaveMcd(0, str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
}
static inline char* BlankHeader()
@@ -56,11 +56,11 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
// header
char *header = BlankHeader();
memcpy(to + (dsti + 1) * 128, header, 128);
- SaveMcd(str, to, (dsti + 1) * 128, 128);
+ SaveMcd(0, str, to, (dsti + 1) * 128, 128);
// data
memset(to + (dsti + 1) * 1024 * 8, 0, 1024 * 8);
- SaveMcd(str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
+ SaveMcd(0, str, to, (dsti + 1) * 1024 * 8, 1024 * 8);
}
@interface PcsxrMemCardArray ()
@@ -338,7 +338,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
for (unsigned char j = 0; j < 127; j++) xor ^= *ptr++;
*ptr = xor;
- SaveMcd(filename, data, i * 128, 128);
+ SaveMcd(0, filename, data, i * 128, 128);
}
}