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
This commit is contained in:
refraction@gmail.com 2013-04-13 19:11:04 +00:00
parent 4ad29982ac
commit 3f80ce330e
1 changed files with 5 additions and 1 deletions

View File

@ -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;