summaryrefslogtreecommitdiff
path: root/macosx/Source/PcsxrMemCardArray.m
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-05-15 16:29:53 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-05-15 16:29:53 +0100
commit1e37eec079558337768c4487fcd0fdd80ea8b005 (patch)
tree5e0d182b82b7f9db8a3b32498484dbaa03e7c0b8 /macosx/Source/PcsxrMemCardArray.m
parent2a24b74c12c6d248409dc93b35edbc373d03b29c (diff)
parenta943b8e2de65f8ec5853cec8c7417ae8df9e9d53 (diff)
downloadpcsxr-1e37eec079558337768c4487fcd0fdd80ea8b005.tar.gz
Merge with OSX commit
Diffstat (limited to 'macosx/Source/PcsxrMemCardArray.m')
-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);
}
}