Normalize detected game executable path

This commit is contained in:
Mr-Quin 2024-03-06 13:06:50 -08:00
parent ccadc11b2b
commit 7590f6a273

View File

@ -46,7 +46,7 @@ internal class GameExePath
var str = File.ReadAllText(configPath);
var installPath = Regex.Match(str, @"game_install_path=(.+)").Groups[1].Value.Trim();
var exeName = Regex.Match(str, @"game_start_name=(.+)").Groups[1].Value.Trim();
var exePath = Path.Join(installPath, exeName);
var exePath = Path.GetFullPath(exeName, installPath);
if (File.Exists(exePath))
{
return exePath;