From b797c32f080fbdb69f4c84ace14a496b34423551 Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Tue, 9 Jul 2013 07:07:15 +0000 Subject: Changing a lot of NSLogs to SysPrintf on OS X's PCSXR. Enable the emulog on OS X debug, and have create and use a log in ~/Library/Logs/PCSXR. Delete the hack that enabled PCSXR logs to go to the console in debug mode. Use modern syntax to create static NSArrays (and retain them in non-ARC code). Simplify the pauseSafeWithBlock to just create a new dispatch queue and run pauseSafe on the queue. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@85931 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/PcsxrMemoryObject.m | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'macosx/PcsxrMemoryObject.m') diff --git a/macosx/PcsxrMemoryObject.m b/macosx/PcsxrMemoryObject.m index 0bb01665..429bedc1 100755 --- a/macosx/PcsxrMemoryObject.m +++ b/macosx/PcsxrMemoryObject.m @@ -25,7 +25,6 @@ NSString *const memoryAnimateTimerKey = @"PCSXR Memory Card Image Animate"; @property (readwrite) int startingIndex; @property (readwrite) int blockSize; - @property (readwrite, nonatomic) NSInteger memImageIndex; @property (arcstrong) NSArray *memImages; @property (readwrite) PCSXRMemFlags flagNameIndex; @@ -148,9 +147,7 @@ static NSString *MemLabelEndLink; return memFlagFree; //Xcode complains unless we do this... -#ifdef DEBUG - NSLog(@"Unknown flag "); -#endif + SysPrintf("Unknown flag %x\n", blockFlags); return memFlagFree; } @@ -170,9 +167,7 @@ static NSString *MemLabelEndLink; self.sjisName = [NSString stringWithCString:infoBlock->sTitle encoding:NSShiftJISStringEncoding]; if ([englishName isEqualToString:sjisName]) { -#ifdef DEBUG - NSLog(@"English name and SJIS name are the same: %@. Replacing the sjis string with the English string.", englishName); -#endif + SysPrintf("English name and sjis name are the same: %s. Replacing the sjis string with the English string.\n", [englishName UTF8String]); self.sjisName = self.englishName; } @autoreleasepool { -- cgit v1.2.3