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:
ramapcsx2 2010-01-10 22:30:28 +00:00
parent adde9249f0
commit ad17fb9ab4
1 changed files with 12 additions and 2 deletions

View File

@ -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.
}