Skip to content

Commit

Permalink
Merge pull request #1115 from shananas/master
Browse files Browse the repository at this point in the history
Fix using English Filepath when extracting Japanesse version and SteamAPITrick wizard page showing improperly
  • Loading branch information
Delta-473 committed Sep 16, 2024
2 parents 140033c + 018b990 commit d50dd8c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 22 deletions.
1 change: 0 additions & 1 deletion OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ await ModsService.InstallMod(name, isZipFile, isLuaFile, progress =>
ConfigPcsx2Location = ConfigurationService.Pcsx2Location,
ConfigPcReleaseLocation = ConfigurationService.PcReleaseLocation,
ConfigPcReleaseLocationKH3D = ConfigurationService.PcReleaseLocationKH3D,
ConfigPcReleaseLanguage = ConfigurationService.PcReleaseLanguage,
ConfigRegionId = ConfigurationService.RegionId,
ConfigPanaceaInstalled = ConfigurationService.PanaceaInstalled,
};
Expand Down
30 changes: 10 additions & 20 deletions OpenKh.Tools.ModsManager/ViewModels/SetupWizardViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,10 @@ public int PCReleaseLanguage
switch (ConfigurationService.PcReleaseLanguage)
{
case "jp":
_pcReleaseLanguage = "jp";
return 1;
default:
_pcReleaseLanguage = "en";
return 0;
}
}
Expand All @@ -211,9 +213,11 @@ public int PCReleaseLanguage
{
case 1:
ConfigurationService.PcReleaseLanguage = "jp";
_pcReleaseLanguage = "jp";
break;
default:
ConfigurationService.PcReleaseLanguage = "en";
_pcReleaseLanguage = "en";
break;
}
}
Expand All @@ -226,10 +230,13 @@ public int LaunchOption
switch (ConfigurationService.PCVersion)
{
case "Steam":
WizardPageAfterLuaBackend = PageSteamAPITrick;
return 1;
case "Other":
WizardPageAfterLuaBackend = PageGameData;
return 2;
default:
WizardPageAfterLuaBackend = PageGameData;
return 0;
}
}
Expand All @@ -240,21 +247,19 @@ public int LaunchOption
case 1:
_pcVersion = "Steam";
ConfigurationService.PCVersion = "Steam";
WizardPageAfterLuaBackend = PageSteamAPITrick;
break;
case 2:
_pcVersion = "Other";
ConfigurationService.PCVersion = "Other";
WizardPageAfterLuaBackend = PageGameData;
break;
default:
_pcVersion = "EGS";
ConfigurationService.PCVersion = "EGS";
WizardPageAfterLuaBackend = PageGameData;
break;
}
WizardPageAfterLuaBackend = LaunchOption switch
{
1 => PageSteamAPITrick,
_ => PageGameData,
};
}
}
public RelayCommand SelectOpenKhGameEngineCommand { get; }
Expand Down Expand Up @@ -495,21 +500,6 @@ public bool OverrideGameDataFound
}

}
public string PcReleaseLanguage
{
get => _pcReleaseLanguage;
set
{
_pcReleaseLanguage = value;
OnPropertyChanged();
OnPropertyChanged(nameof(PcReleaseLanguage));
OnPropertyChanged(nameof(IsLastPanaceaVersionInstalled));
OnPropertyChanged(nameof(PanaceaInstalledVisibility));
OnPropertyChanged(nameof(PanaceaNotInstalledVisibility));
OnPropertyChanged(nameof(IsGameSelected));
OnPropertyChanged(nameof(IsGameDataFound));
}
}

public RelayCommand SelectGameDataLocationCommand { get; }
public string GameDataLocation
Expand Down
1 change: 0 additions & 1 deletion OpenKh.Tools.ModsManager/Views/SetupWizardWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public SetupWizardWindow()
public string ConfigPcsx2Location { get => _vm.Pcsx2Location; set => _vm.Pcsx2Location = value; }
public string ConfigPcReleaseLocation { get => _vm.PcReleaseLocation; set => _vm.PcReleaseLocation = value; }
public string ConfigPcReleaseLocationKH3D { get => _vm.PcReleaseLocationKH3D; set => _vm.PcReleaseLocationKH3D = value; }
public string ConfigPcReleaseLanguage { get => _vm.PcReleaseLanguage; set => _vm.PcReleaseLanguage = value; }
public string ConfigGameDataLocation { get => _vm.GameDataLocation; set => _vm.GameDataLocation = value; }
public int ConfigRegionId { get => _vm.RegionId; set => _vm.RegionId = value; }
public bool ConfigPanaceaInstalled { get => _vm.PanaceaInstalled; set => _vm.PanaceaInstalled = value; }
Expand Down

0 comments on commit d50dd8c

Please sign in to comment.