DEV9ghzdrk: Fixed the bad slowness.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5598 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
ramapcsx2.code 2013-03-19 23:43:16 +00:00
parent 2e6917c409
commit 7a00d19b55
1 changed files with 4 additions and 4 deletions

View File

@ -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);