From 751fd0cf1e71cd9ae5208dd5e0961dff9d64bf71 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Tue, 18 Feb 2020 11:05:15 -0800 Subject: [PATCH] Check PSX.EXE date second (fixes #193) --- DICUI.Library/Utilities/DumpEnvironment.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/DICUI.Library/Utilities/DumpEnvironment.cs b/DICUI.Library/Utilities/DumpEnvironment.cs index c28ba18b..1f6d37a2 100644 --- a/DICUI.Library/Utilities/DumpEnvironment.cs +++ b/DICUI.Library/Utilities/DumpEnvironment.cs @@ -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;