From 2aef6a6a05384c7eb5e01fc5144a893f5aeb853c Mon Sep 17 00:00:00 2001 From: "SND\\MaddTheSane_cp" Date: Wed, 27 Nov 2013 04:38:59 +0000 Subject: Minor changes. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@87983 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/main.m | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/macosx/main.m b/macosx/main.m index 60a6fd19..bda97ec4 100755 --- a/macosx/main.m +++ b/macosx/main.m @@ -10,8 +10,7 @@ #import "PcsxrController.h" #import "ConfigurationController.h" #include -//#import -#import +#include #include "psxcommon.h" #include "sio.h" #include @@ -119,20 +118,6 @@ void SysReset() //EmuReset(); } -#ifdef EMU_LOG -#ifndef LOG_STDOUT -static inline NSDateFormatter* debugDateFormatter() -{ - static NSDateFormatter* theFormatter = nil; - if (theFormatter == nil) { - theFormatter = [[NSDateFormatter alloc] init]; - [theFormatter setDateFormat:@"yyyy-MM-dd HH:mm:ss:SSS"]; - } - return theFormatter; -} -#endif -#endif - static void AddStringToLogList(const char *themsg) { static NSMutableString *theStr; @@ -164,10 +149,12 @@ void SysPrintf(const char *fmt, ...) va_end(list); RunOnMainThreadSync(^{ - if (Config.PsxOut) AddStringToLogList(msg); + if (Config.PsxOut) + AddStringToLogList(msg); #ifdef EMU_LOG #ifndef LOG_STDOUT - if (emuLog) fprintf(emuLog, "%s", msg); + if (emuLog) + fprintf(emuLog, "%s", msg); #endif #endif }); -- cgit v1.2.3