Check PSX.EXE date second (fixes #193)

This commit is contained in:
Matt Nadareski
2020-02-18 11:05:15 -08:00
parent 84c64e6073
commit 751fd0cf1e

View File

@@ -2366,11 +2366,7 @@ namespace DICUI.Utilities
// Try both of the common paths that contain information
string exeName = null;
if (File.Exists(psxExePath))
{
exeName = "PSX.EXE";
}
else if (File.Exists(systemCnfPath))
if (File.Exists(systemCnfPath))
{
// Let's try reading SYSTEM.CNF to find the "BOOT" value
try
@@ -2392,6 +2388,10 @@ namespace DICUI.Utilities
return false;
}
}
else if (File.Exists(psxExePath))
{
exeName = "PSX.EXE";
}
else
{
return false;