aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore/psxhw.c
diff options
context:
space:
mode:
authornotaz2012-01-01 02:10:52 +0200
committernotaz2012-01-01 02:10:52 +0200
commit0486fdc9bd313ce2f01dafa4d3c151f40e2c729b (patch)
tree6613be25e0846f1b7b9bbfa9e2afccc94c14147b /libpcsxcore/psxhw.c
parentc7945666b47fa5636762bfa52cd6328125d607c4 (diff)
downloadpcsx_rearmed-0486fdc9bd313ce2f01dafa4d3c151f40e2c729b.tar.gz
pcsx_rearmed-0486fdc9bd313ce2f01dafa4d3c151f40e2c729b.tar.bz2
pcsx_rearmed-0486fdc9bd313ce2f01dafa4d3c151f40e2c729b.zip
change lcf handling
not quite right but better than before, I hope
Diffstat (limited to 'libpcsxcore/psxhw.c')
-rw-r--r--libpcsxcore/psxhw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c
index bcedb97..ebdff87 100644
--- a/libpcsxcore/psxhw.c
+++ b/libpcsxcore/psxhw.c
@@ -242,6 +242,8 @@ u32 psxHwRead32(u32 add) {
case 0x1f801814:
gpuSyncPluginSR();
hard = HW_GPU_STATUS;
+ if (hSyncCount < 240 && (HW_GPU_STATUS & PSXGPU_ILACE_BITS) != PSXGPU_ILACE_BITS)
+ hard |= PSXGPU_LCF & (psxRegs.cycle << 20);
#ifdef PSXHW_LOG
PSXHW_LOG("GPU STATUS 32bit read %x\n", hard);
#endif