summaryrefslogtreecommitdiff
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
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
-rwxr-xr-xmacosx/PcsxrController.m2
-rw-r--r--macosx/PcsxrMemCardArray.m12
-rwxr-xr-xmacosx/main.m2
3 files changed, 9 insertions, 7 deletions
diff --git a/macosx/PcsxrController.m b/macosx/PcsxrController.m
index e2e85c88..715c15f5 100755
--- a/macosx/PcsxrController.m
+++ b/macosx/PcsxrController.m
@@ -823,7 +823,7 @@ otherblock();\
}
if (![[NSFileManager defaultManager] fileExistsAtPath:filename]) {
- SysPrintf("Nonexistant file %s was passed to open.\n", [filename fileSystemRepresentation]);
+ NSLog(@"Nonexistant file %@ was passed to open.", filename );
return NO;
}
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;
}
diff --git a/macosx/main.m b/macosx/main.m
index 7a38d431..2627f6d3 100755
--- a/macosx/main.m
+++ b/macosx/main.m
@@ -189,7 +189,7 @@ const char *SysLibError() {
#ifdef DEBUG
const char *theErr = dlerror();
if (theErr) {
- SysPrintf("Error loading binary: %s\n", theErr);
+ NSLog(@"@Error loading binary: %s.", theErr);
}
return theErr;
#else