Skip to content

Commit

Permalink
Better Detect Install for Steam
Browse files Browse the repository at this point in the history
If the user had a folder with the same name as where 1.5 2.5 or 2.8 were installed it would say it is a valid install even if the folder is empty. this checks that .dll that lets you press the next button exists in that folder first. EGS detect game install seems to be a little more specific and i do not have the EGS version to test so i did not edit that code.
  • Loading branch information
shananas committed Jan 16, 2025
1 parent 9079c12 commit 110821a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -809,12 +809,12 @@ public SetupWizardViewModel()
{
string kH1525Path = Path.Combine(commonGamesDirectory, @"KINGDOM HEARTS -HD 1.5+2.5 ReMIX-");
string kH28Path = Path.Combine(commonGamesDirectory, @"KINGDOM HEARTS HD 2.8 Final Chapter Prologue");
if (Directory.Exists(kH1525Path))
if (File.Exists(Path.Combine(kH1525Path, "steam_api64.dll")))
{
installLocationFoundRemix = true;
PcReleaseLocation = kH1525Path;
}
if (Directory.Exists(kH28Path))
if (File.Exists(Path.Combine(kH28Path, "steam_api64.dll")))
{
installLocationFound3D = true;
PcReleaseLocationKH3D = kH28Path;
Expand Down

0 comments on commit 110821a

Please sign in to comment.