mirror of
https://github.com/babalae/better-genshin-impact
synced 2025-01-09 04:19:47 +08:00
Normalize detected game executable path
This commit is contained in:
parent
ccadc11b2b
commit
7590f6a273
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user