Skip to content

Commit

Permalink
Merge pull request #1588 from Dobby233Liu/fix-gms2-runner-discovery
Browse files Browse the repository at this point in the history
Fix GMS2 runner discovery
  • Loading branch information
colinator27 authored Jan 11, 2024
2 parents e8d68c4 + d89a9ab commit fc8e082
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UndertaleModTool/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class Settings

public string Version { get; set; } = MainWindow.Version;
public string GameMakerStudioPath { get; set; } = "%appdata%\\GameMaker-Studio";
public string GameMakerStudio2RuntimesPath { get; set; } = "%systemdrive%\\ProgramData\\GameMakerStudio2\\Cache\\runtimes"; /* Using %systemdrive% here fixes the runtimes not being found when the system drive is not C:\\ */
public string GameMakerStudio2RuntimesPath { get; set; } = "%ProgramData%\\GameMakerStudio2\\Cache\\runtimes";
public bool AssetOrderSwappingEnabled { get; set; } = false;
public bool ProfileModeEnabled { get; set; } = false;
public bool UseGMLCache { get; set; } = false;
Expand Down
3 changes: 3 additions & 0 deletions UndertaleModTool/Windows/RuntimePicker.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ private void DiscoverGMS2()
continue;

string runtimeRunner = System.IO.Path.Combine(runtimePath, @"windows\Runner.exe");
string runtimeRunnerX64 = System.IO.Path.Combine(runtimePath, @"windows\x64\Runner.exe");
if (Environment.Is64BitOperatingSystem && File.Exists(runtimeRunnerX64))
runtimeRunner = runtimeRunnerX64;
if (!File.Exists(runtimeRunner))
continue;

Expand Down

0 comments on commit fc8e082

Please sign in to comment.