summaryrefslogtreecommitdiff
path: root/macosx/PcsxrMemCardArray.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-11 03:24:07 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-07-11 03:24:07 +0000
commit01055ead4cbd9c3ee64b8be3012cf064f55cd262 (patch)
treec4fa848d844a992bca9b9ec6813085b7947452df /macosx/PcsxrMemCardArray.m
parentba28f82c5e499d9cc9c9c4f5fce17f0813f434c8 (diff)
downloadpcsxr-01055ead4cbd9c3ee64b8be3012cf064f55cd262.tar.gz
Remvoing SysPrintfs that I missed from Cocoa code the last time I did this.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85968 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/PcsxrMemCardArray.m')
-rw-r--r--macosx/PcsxrMemCardArray.m12
1 files changed, 7 insertions, 5 deletions
diff --git a/macosx/PcsxrMemCardArray.m b/macosx/PcsxrMemCardArray.m
index c12f50dd..0f588371 100644
--- a/macosx/PcsxrMemCardArray.m
+++ b/macosx/PcsxrMemCardArray.m
@@ -179,7 +179,9 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
- (BOOL)moveBlockAtIndex:(int)idx toMemoryCard:(PcsxrMemCardArray*)otherCard
{
if (idx == [rawArray count]) {
- SysPrintf("Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"move\" the free blocks. We don't want to do this.\n");
+#ifdef DEBUG
+ NSLog(@"Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"move\" the free blocks. We don't want to do this.");
+#endif
return NO;
}
PcsxrMemoryObject *tmpObj = [rawArray objectAtIndex:idx];
@@ -187,13 +189,13 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
int memSize = tmpObj.blockSize;
if ([otherCard availableBlocks] < memSize) {
- SysPrintf("Failing because the other card does not have enough space!\n");
+ NSLog(@"Failing because the other card does not have enough space!");
return NO;
}
int toCopy = [otherCard indexOfFreeBlocksWithSize:memSize];
if (toCopy == -1) {
- SysPrintf("Not enough consecutive blocks. Compacting the other card.\n");
+ NSLog(@"Not enough consecutive blocks. Compacting the other card.");
[otherCard compactMemory];
//Since we're accessing the mem card data directly (instead of via PcsxrMemoryObject objects) using the following calls, we don't need to reload the data.
toCopy = [otherCard indexOfFreeBlocksWithSize:memSize];
@@ -255,7 +257,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
- (int)memorySizeAtIndex:(int)idx
{
if (idx == [rawArray count]) {
- SysPrintf("Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"count\" the free blocks.\n");
+ NSLog(@"Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"count\" the free blocks.");
return [self freeBlocks];
}
@@ -310,7 +312,7 @@ static inline void ClearMemcardData(char *to, int dsti, char *str)
}
if (slotnum == [rawArray count]) {
- SysPrintf("Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"delete\" the free blocks.\n");
+ NSLog(@"Trying to get an object one more than the length of the raw array. Perhaps you were trying to \"delete\" the free blocks.");
return;
}