From 9c1a5a9c319901c17e040ef154b77c74e7c3f7ff Mon Sep 17 00:00:00 2001 From: "SND\\ckain_cp" Date: Sat, 1 Mar 2014 01:02:46 +0000 Subject: MML speed fix. git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@89233 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/psxhw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/psxhw.c b/libpcsxcore/psxhw.c index 08e16f83..c00b8ab8 100755 --- a/libpcsxcore/psxhw.c +++ b/libpcsxcore/psxhw.c @@ -746,7 +746,10 @@ void psxHwWrite32(u32 add, u32 value) { #endif // 0x1F means irq request, so fulfill it here because plugin can't and won't // Probably no need to send this to plugin in first place... - if (value == 0x01f00000) { + // MML/Tronbonne is known to use this. + // TODO FIFO is not implemented properly so commands are not exact + // and thus we rely on hack that counter/cdrom irqs are enabled at same time + if (SWAPu32(value) == 0x1f00000 && (psxHu32ref(0x1070) & 0x44)) { setIrq( 0x01 ); } GPU_writeData(value); return; -- cgit v1.2.3