mirror of https://github.com/PCSX2/pcsx2.git
Fix to disc type detection. Starting elfs with non-ps2 disk mounted works again.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2424 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
adde9249f0
commit
ad17fb9ab4
|
@ -96,11 +96,21 @@ static int CheckDiskTypeFS(int baseType)
|
|||
{
|
||||
}
|
||||
|
||||
if( rootdir.IsFile(L"PSX.EXE;1") )
|
||||
try {
|
||||
IsoFile file( rootdir, L"PSX.EXE;1");
|
||||
return CDVD_TYPE_PSCD;
|
||||
}
|
||||
catch( Exception::FileNotFound& )
|
||||
{
|
||||
}
|
||||
|
||||
if( rootdir.IsFile(L"VIDEO_TS/VIDEO_TS.IFO;1") )
|
||||
try {
|
||||
IsoFile file( rootdir, L"VIDEO_TS/VIDEO_TS.IFO;1");
|
||||
return CDVD_TYPE_DVDV;
|
||||
}
|
||||
catch( Exception::FileNotFound& )
|
||||
{
|
||||
}
|
||||
|
||||
return CDVD_TYPE_ILLEGAL; // << Only for discs which aren't ps2 at all.
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue