mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
4ad29982ac
commit
3f80ce330e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue