mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
fix: a GOG install launches the game, not its config tool (#1644)
Blood Omen ships dxconfig.exe beside kain.exe and the shortcut pointed at the config tool: pickExe kept the first .exe the folder listing returned when no title match was found. Read the game's play task from GOG's own goggame-<id>.info manifest first - a primary game task, or a primary launcher task for launcher games, and the product's manifest ahead of any other goggame-*.info - then the product's temp_executable; without either, rank the folder's exes so a word of the title wins, config and tool names lose, and depth then size break the remaining ties. GOG's galaxy_*.exe support installer is not the game either. The Witcher: Enhanced Edition ships galaxy_the_witcher_enhanced_edition_2.1.0.15.exe beside launcher.exe, and its build metadata names that file as the product's temp executable, so launching it starts a 32-bit installer that stops at "Path not found" under ARM64 FEX - the same dialog as the setup stub #1174 removed. Play tasks, the hint and the name search skip it. Fixes #680 Fixes #694 Only a primary launcher task counts as a launch task: GOG files the configuration tool beside a game as a non-primary launcher, so it now falls through to the executable search instead of becoming the game. The temp_executable hint is matched by basename with either separator and must resolve inside the install folder, so a nested galaxy_*.exe is skipped too and a hint cannot point outside the game. GOG runs a task from the working directory it declares, and from the install root when it declares none. That directory now reaches the sidecar and the shortcut's Start In: a game in a subfolder (System/witcher.exe) starts where GOG starts it instead of in System/, where it cannot find its Data folder.
This commit is contained in:
1 parent
d849e6ae0a
commit
0110dc3c0f
10 files changed
+625
-22
No files matched your search
@@ -244,6 +244,19 @@ self-extractor stops at "Path not found", so the values it installs are applied
|
||||
`witcher.exe` exits during startup. The language comes from the installed product's
|
||||
`goggame-<id>.info`, and a script's own `setRegistry` entries always win over the built-in table.
|
||||
|
||||
A GOG game's exe comes from its own manifest first: `goggame-<id>.info`'s play task in category
|
||||
`game` (`isPrimary` first), or a primary `launcher` task for launcher games, whose `path` stays
|
||||
inside the folder; any other `goggame-*.info` in the folder supplies the task only when the
|
||||
product's own has none. The task's `workingDir` becomes the shortcut's Start In, and the install root
|
||||
when the task declares none - GOG's own default, and what a game in a subfolder such as
|
||||
`System/witcher.exe` needs to find its `Data` folder. Else the product's `temp_executable`, else a
|
||||
score over the folder's `.exe` files - a word of the game's title in the name first (Blood Omen's
|
||||
`kain.exe` over its `dxconfig.exe`), config and tool names (`config`, `settings`, `launcher`,
|
||||
`editor`, `crashreport`, …) last, shallower and bigger ahead on a tie. GOG's `galaxy_*.exe` support
|
||||
installer is never the game, whatever the manifest or the temp executable says: The Witcher ships it
|
||||
beside `launcher.exe` and its own `temp_executable` names it, and starting it runs the same 32-bit
|
||||
installer that fails under ARM64 with "Path not found" (issue #694).
|
||||
|
||||
A game's web links reach Android: `droiddeck-store-launch` sets the prefix's
|
||||
`HKCU\Software\Wine\WineBrowser` `Browsers` to `/usr/local/bin/droiddeck-open-url`, which is also
|
||||
`xdg-open` first on the game's PATH, and hands http(s) addresses to the app, which opens them in
|
||||
|
||||
Reference in new issue
Block a user