X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fpsxcounters.c;h=f6c1bc448cb2e0941821fd1b62dd49aab91c7a0a;hp=ebfe62967fd2f6fa4ccbb1568352f275b82b288e;hb=c7a56f4f574167acc7e3751cf04aa9bf9ebba913;hpb=ef79bbde537d6b9c745a7d86cb9df1d04c35590d diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index ebfe6296..f6c1bc44 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -100,7 +100,7 @@ void verboseLog( s32 level, const char *str, ... ) vsprintf( buf, str, va ); va_end( va ); - printf( buf ); + printf( "%s", buf ); fflush( stdout ); } } @@ -286,7 +286,7 @@ void psxRcntUpdate() // VSync irq. if( hSyncCount == VBlankStart[Config.PsxType] ) { - GPU_vBlank( 1 ); + GPU_vBlank( 1, &hSyncCount ); // For the best times. :D //setIrq( 0x01 ); @@ -297,11 +297,11 @@ void psxRcntUpdate() { hSyncCount = 0; - GPU_vBlank( 0 ); + GPU_vBlank( 0, &hSyncCount ); setIrq( 0x01 ); - GPU_updateLace(); EmuUpdate(); + GPU_updateLace(); } } @@ -461,6 +461,9 @@ void psxRcntInit() _psxRcntWcount( i, 0 ); } + hSyncCount = 0; + spuSyncCount = 0; + psxRcntSet(); }