From 3f80ce330e9b4b35bc823d5eaa9fef5ac2648a89 Mon Sep 17 00:00:00 2001 From: "refraction@gmail.com" Date: Sat, 13 Apr 2013 19:11:04 +0000 Subject: [PATCH] CDVD: slightly modified the way PCSX2 checks for oddly sized DVD's. Some CD's weren't providing information as expected so it detected it as a DVD, resulting in nothing but TLB misses. Fixes Impossible Mission, possibly other games that do nothing but TLB miss or fail to load an IRX module. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5616 96395faa-99c1-11dd-bbfe-3dabce05a288 --- pcsx2/CDVD/CDVDaccess.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pcsx2/CDVD/CDVDaccess.cpp b/pcsx2/CDVD/CDVDaccess.cpp index 3706f5ffd1..1352794ab9 100644 --- a/pcsx2/CDVD/CDVDaccess.cpp +++ b/pcsx2/CDVD/CDVDaccess.cpp @@ -148,7 +148,11 @@ static int FindDiskType(int mType) { //const cdVolDesc& volDesc = (cdVolDesc&)bleh; //if(volDesc.rootToc.tocSize == 2048) - if(*(u16*)(bleh+166) == 2048) + + //Horrible hack! in CD images position 166 and 171 have block size but not DVD's + //It's not always 2048 however (can be 4096) + //Test Impossible Mission if thia is changed. + if(*(u16*)(bleh+166) == *(u16*)(bleh+171)) iCDType = CDVD_TYPE_DETCTCD; else iCDType = CDVD_TYPE_DETCTDVDS;