From 447d7152b5fd4775e7a7a8a78366e268ce65aa52 Mon Sep 17 00:00:00 2001 From: "ramapcsx2.code" Date: Wed, 20 Mar 2013 14:07:31 +0000 Subject: [PATCH] DEV9ghzdrk: Re-enabled the stack init hack, fixing GT4 network use. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5600 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/dev9ghzdrk/Win32/smap.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/dev9ghzdrk/Win32/smap.cpp b/plugins/dev9ghzdrk/Win32/smap.cpp index 54d274f393..3e1d1c8c1d 100644 --- a/plugins/dev9ghzdrk/Win32/smap.cpp +++ b/plugins/dev9ghzdrk/Win32/smap.cpp @@ -118,16 +118,16 @@ void tx_process() u32 cnt=dev9Ru8(SMAP_R_TXFIFO_FRAME_CNT); //spams// printf("tx_process : %d cnt frames !\n",cnt); - // this hack worsens OPL performance. Is it really needed? OPL works fine without. (rama) - //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; - //} + //Hack needed for GT4. Game fails to init the adapter otherwise (and notices about that via IOP kprintf on bootup). + 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;