Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Unreal Gold being unable to launch #636

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (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')
sharkwouter marked this conversation as resolved.
Show resolved Hide resolved
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
Loading