From 7a00d19b55a1c4ebddc655e031f21b5823843200 Mon Sep 17 00:00:00 2001 From: "ramapcsx2.code" Date: Tue, 19 Mar 2013 23:43:16 +0000 Subject: [PATCH] DEV9ghzdrk: Fixed the bad slowness. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5598 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/dev9ghzdrk/DEV9.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/dev9ghzdrk/DEV9.cpp b/plugins/dev9ghzdrk/DEV9.cpp index 7c4a08acf2..992d83043e 100644 --- a/plugins/dev9ghzdrk/DEV9.cpp +++ b/plugins/dev9ghzdrk/DEV9.cpp @@ -37,9 +37,6 @@ u8 eeprom[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; - -int Log = 1; - u32 *iopPC; const unsigned char version = PS2E_DEV9_VERSION; @@ -68,7 +65,11 @@ u32 CALLBACK PS2EgetLibVersion2(u32 type) { return (version<<16) | (revision<<8) | build; } +// Warning: The below log function is SLOW. Better fix it before attempting to use it. +int Log = 0; + void __Log(char *fmt, ...) { + if (!Log) return; va_list list; static int ticks=-1; @@ -76,7 +77,6 @@ void __Log(char *fmt, ...) { if(ticks==-1) ticks=nticks; -// if (!Log) return; if(iopPC!=NULL) { fprintf(dev9Log,"[%10d + %4d, IOP PC = %08x] ",nticks,nticks-ticks,*iopPC);