diff --git a/Views/Settings.cs b/Views/Settings.cs index b98ea9ae..aa9c012d 100644 --- a/Views/Settings.cs +++ b/Views/Settings.cs @@ -758,7 +758,7 @@ private void btnGameExeLocationBrowse_Click(object sender, EventArgs e) { MetroMessageBox.Show(this, Multilingual.GetWord("message_not_installed_epicGames", this.DisplayLang), Multilingual.GetWord("message_not_installed_epicGames_caption", this.DisplayLang), MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - + openFile.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory); openFile.Filter = Multilingual.GetWord("settings_fall_guys_shortcut_openfile_filter", this.DisplayLang); openFile.FileName = Multilingual.GetWord("settings_fall_guys_shortcut_openfile_name", this.DisplayLang); @@ -793,11 +793,12 @@ private void btnGameExeLocationBrowse_Click(object sender, EventArgs e) { MetroMessageBox.Show(this, Multilingual.GetWord("message_not_installed_steam", this.DisplayLang), Multilingual.GetWord("message_not_installed_steam_caption", this.DisplayLang), MessageBoxButtons.OK, MessageBoxIcon.Error); return; } - + FileInfo currentExeLocation = new FileInfo(this.txtGameExeLocation.Text); if (currentExeLocation.Directory.Exists) { openFile.InitialDirectory = currentExeLocation.Directory.FullName; } + openFile.Filter = Multilingual.GetWord("settings_fall_guys_exe_openfile_filter", this.DisplayLang); openFile.FileName = Multilingual.GetWord("settings_fall_guys_exe_openfile_name", this.DisplayLang); openFile.Title = Multilingual.GetWord("settings_fall_guys_exe_openfile_title", this.DisplayLang); diff --git a/Views/Stats.cs b/Views/Stats.cs index 7f64b092..90201795 100644 --- a/Views/Stats.cs +++ b/Views/Stats.cs @@ -7802,10 +7802,18 @@ public string[] FindSteamUserInfo() { public string FindEpicGamesShortcutLocation() { try { - object regValue = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Epic Games\\EpicGamesLauncher", "AppDataPath", null); - if (regValue == null) { return string.Empty; } - - string epicGamesPath = Path.Combine((string)regValue, "Manifests"); + string epicGamesPath; + object regValue = Registry.GetValue("HKEY_CURRENT_USER\\Software\\Epic Games\\EOS", "ModSdkMetadataDir", null); + if (regValue != null) { + epicGamesPath = Path.GetFullPath((string)regValue); + } else { + regValue = Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Epic Games\\EpicGamesLauncher", "AppDataPath", null); + if (regValue != null) { + epicGamesPath = Path.Combine((string)regValue, "Manifests"); + } else { + return string.Empty; + } + } if (Directory.Exists(epicGamesPath)) { DirectoryInfo di = new DirectoryInfo(epicGamesPath);