diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-24 09:18:34 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2010-05-24 09:18:34 +0000 |
| commit | 4e73d3ec54ed340e07bda2712f4381fb15bbf699 (patch) | |
| tree | 9cc09fde30c45549b91efeedc1d6a0950ac7007f | |
| parent | aae941b3a5bae6de172f815936f042ec4c998f63 (diff) | |
| download | pcsxr-4e73d3ec54ed340e07bda2712f4381fb15bbf699.tar.gz | |
Fixed freeze bug when launching an NTSC game when Config.PsxAuto is enabled and Config.PsxType is set to PAL.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48663 e17a0e51-4ae3-4d35-97c3-1a29b211df97
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | libpcsxcore/psxcounters.c | 12 |
2 files changed, 11 insertions, 9 deletions
@@ -3,10 +3,12 @@ May 24, 2010 Wei Mingzhi <whistler_wmz@users.sf.net> * win32/gui/WndMain.c: Also show Japanese titles properly for Windows (need to set ACP to east-asian languages). * win32/intl/gettext.c: Added a hack for UTF-8 support. - * win32/gui/AboutDlg.c: Updated info.
- * win32/config.h: Silenced MSVC6 warnings.
- * libpcsxcore/psxbios.c: Implemented more functions. RNG should behave
+ * win32/gui/AboutDlg.c: Updated info. + * win32/config.h: Silenced MSVC6 warnings. + * libpcsxcore/psxbios.c: Implemented more functions. RNG should behave exactly the same as real BIOS now. + * libpcsxcore/psxcounters.c: Fixed freeze bug when launching an NTSC game + when Config.PsxAuto is enabled and Config.PsxType is set to PAL. May 23, 2010 Wei Mingzhi <whistler_wmz@users.sf.net> diff --git a/libpcsxcore/psxcounters.c b/libpcsxcore/psxcounters.c index d1089b66..16cea3af 100644 --- a/libpcsxcore/psxcounters.c +++ b/libpcsxcore/psxcounters.c @@ -75,10 +75,10 @@ static const s32 VerboseLevel = 0; static Rcnt rcnts[ CounterQuantity ]; -static u32 hSyncCount; -static u32 spuSyncCount; +static u32 hSyncCount = 0; +static u32 spuSyncCount = 0; -u32 psxNextCounter, psxNextsCounter; +u32 psxNextCounter = 0, psxNextsCounter = 0; /******************************************************************************/ @@ -273,7 +273,7 @@ void psxRcntUpdate() hSyncCount++; // Update spu. - if( spuSyncCount == SpuUpdInterval[Config.PsxType] ) + if( spuSyncCount >= SpuUpdInterval[Config.PsxType] ) { spuSyncCount = 0; @@ -285,13 +285,13 @@ void psxRcntUpdate() /* // For the best times. :D // VSync irq. - if( hSyncCount == VBlankStart[Config.PsxType] ) + if( hSyncCount >= VBlankStart[Config.PsxType] ) { setIrq( 0x01 ); } */ // Update lace. (with InuYasha fix) - if( hSyncCount == (Config.VSyncWA ? HSyncTotal[Config.PsxType] / BIAS : HSyncTotal[Config.PsxType]) ) + if( hSyncCount >= (Config.VSyncWA ? HSyncTotal[Config.PsxType] / BIAS : HSyncTotal[Config.PsxType]) ) { hSyncCount = 0; |
