public static string GetExecutablePath(GameTarget target, bool preferRealGameExe = false) { if (target.Game == MEGame.ME2 && preferRealGameExe) { // Prefer ME2Game.exe if it exists var executableFolder = GetExecutableDirectory(target); var exeReal = Path.Combine(executableFolder, @"ME2Game.exe"); if (File.Exists(exeReal)) { return(exeReal); } } return(MEDirectories.GetExecutablePath(target.Game, target.TargetPath)); }