Skip to content

Commit

Permalink
Merge pull request #1142 from shananas/master
Browse files Browse the repository at this point in the history
Setup Wizard Changes
  • Loading branch information
Oathseeker authored Jan 23, 2025
2 parents 2cf5d3a + cec493c commit 4b9b066
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 85 deletions.
25 changes: 2 additions & 23 deletions OpenKh.Tools.ModsManager/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,30 +469,9 @@ await ModsService.InstallMod(name, isZipFile, isLuaFile, progress =>
}, _ => IsRunning);
WizardCommand = new RelayCommand(_ =>
{
var dialog = new SetupWizardWindow()
var dialog = new SetupWizardWindow();
if (dialog.ShowDialog() != null)
{
ConfigGameEdition = ConfigurationService.GameEdition,
ConfigGameDataLocation = ConfigurationService.GameDataLocation,
ConfigIsoLocation = ConfigurationService.IsoLocation,
ConfigOpenKhGameEngineLocation = ConfigurationService.OpenKhGameEngineLocation,
ConfigPcsx2Location = ConfigurationService.Pcsx2Location,
ConfigPcReleaseLocation = ConfigurationService.PcReleaseLocation,
ConfigPcReleaseLocationKH3D = ConfigurationService.PcReleaseLocationKH3D,
ConfigRegionId = ConfigurationService.RegionId,
ConfigPanaceaInstalled = ConfigurationService.PanaceaInstalled,
};
if (dialog.ShowDialog() == true)
{
ConfigurationService.GameEdition = dialog.ConfigGameEdition;
ConfigurationService.GameDataLocation = dialog.ConfigGameDataLocation;
ConfigurationService.IsoLocation = dialog.ConfigIsoLocation;
ConfigurationService.OpenKhGameEngineLocation = dialog.ConfigOpenKhGameEngineLocation;
ConfigurationService.Pcsx2Location = dialog.ConfigPcsx2Location;
ConfigurationService.PcReleaseLocation = dialog.ConfigPcReleaseLocation;
ConfigurationService.PcReleaseLocationKH3D = dialog.ConfigPcReleaseLocationKH3D;
ConfigurationService.RegionId = dialog.ConfigRegionId;
ConfigurationService.PanaceaInstalled = dialog.ConfigPanaceaInstalled;
ConfigurationService.WizardVersionNumber = _wizardVersionNumber;
if (ConfigurationService.GameEdition == 2)
{
PC = true;
Expand Down
Loading

0 comments on commit 4b9b066

Please sign in to comment.