Skip to content

Commit

Permalink
Merge pull request #636 from sharkwouter/find-executable-fix
Browse files Browse the repository at this point in the history
Fix Unreal Gold being unable to launch
  • Loading branch information
sharkwouter authored Jan 6, 2025
2 parents fde5523 + 383675a commit 625a80d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
- Completely reworked windows wine installation. This should solve a lot of problems with failing game installs. Innoextract (if installed) is only used to detect and configure the installation language. (thanks to GB609)
- Variables and arguments in game settings can now contain blanks when quoted shell-style (thanks to GB609)
- Minigalaxy will now create working Desktop Shortcuts for wine games (thanks to GB609)
- Make games Unreal Gold able to launch

**1.3.1**
- Fix Windows games with multiple parts not installing with wine
Expand Down
5 changes: 4 additions & 1 deletion minigalaxy/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,10 @@ def get_windows_exe_cmd(game, files):
# in case no goggame info file was found
executables = glob.glob(game.install_dir + '/*.exe')
executables.remove(os.path.join(game.install_dir, "unins000.exe"))
filename = os.path.splitext(os.path.basename(executables[0]))[0] + '.exe'
if not executables:
# Look one directory level deeper
executables = glob.glob(game.install_dir + '/*/*.exe')
filename = os.path.relpath(executables[0], game.install_dir)
exe_cmd = [get_wine_path(game), filename]

# Backwards compatibility with windows games installed before installer fixes.
Expand Down

0 comments on commit 625a80d

Please sign in to comment.