diff --git a/plugins/dev9ghzdrk/DEV9.cpp b/plugins/dev9ghzdrk/DEV9.cpp index 35a2ef00e1..6e2b020b58 100644 --- a/plugins/dev9ghzdrk/DEV9.cpp +++ b/plugins/dev9ghzdrk/DEV9.cpp @@ -183,7 +183,6 @@ void CALLBACK DEV9shutdown() { #endif } -bool tx_p_first; s32 CALLBACK DEV9open(void *pDsp) { DEV9_LOG("DEV9open\n"); @@ -191,8 +190,6 @@ s32 CALLBACK DEV9open(void *pDsp) DEV9_LOG("open r+: %s\n", config.Hdd); config.HddSize = 8*1024; - tx_p_first=false; // reset stack init hack so it works on game reboots - iopPC = (u32*)pDsp; #ifdef ENABLE_ATA @@ -627,4 +624,4 @@ int emu_printf(const char *fmt, ...) va_end(vl); fflush(stderr); return ret; -} \ No newline at end of file +} diff --git a/plugins/dev9ghzdrk/Win32/smap.cpp b/plugins/dev9ghzdrk/Win32/smap.cpp index 78d757c86a..0d9bfe11d4 100644 --- a/plugins/dev9ghzdrk/Win32/smap.cpp +++ b/plugins/dev9ghzdrk/Win32/smap.cpp @@ -127,25 +127,12 @@ u32 wswap(u32 d) return (d>>16)|(d<<16); } -extern bool tx_p_first; void tx_process() { //we loop based on count ? or just *use* it ? u32 cnt=dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT); //spams// printf("tx_process : %d cnt frames !\n",cnt); - //Hack needed for GT4. Game fails to init the adapter otherwise (and notices about that via IOP kprintf on bootup). - //Reseting SMAP_R_TXFIFO_FRAME_CNT to 0 however breaks OPL. Thankfully not doing that fixes the problem while GT4 still works. - if (!tx_p_first) - { - //dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT)=0; - tx_p_first=true; - //THIS IS A HACK.without that the stack wont init, i guess its missing e3/emac emulation .. - emu_printf("WARN : First packet interrupt hack ..\n"); - _DEV9irq(SMAP_INTR_RXEND|SMAP_INTR_TXEND|SMAP_INTR_TXDNV,100); - return; - } - NetPacket pk; int fc=0; for (fc=0;fc