mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
fix(epic): start parent-checking Epic titles under an EpicGamesLauncher.exe stand-in and stage their Rockstar SDK (#2932)
* fix(epic): start Epic titles that check their parent under an EpicGamesLauncher.exe stand-in Rockstar's launcher only accepts an Epic copy of GTA V when a process named EpicGamesLauncher.exe started it. DroidDeck's Epic client is a Linux program, so the launcher logged "Epic Games Launcher not detected as parent process", failed to relaunch through Epic and showed the game as unowned. - tools/epic-launcher: a small Windows EpicGamesLauncher.exe that starts the game with the rest of its own command line, unchanged, waits for it and returns its exit code. It ships as the epic add-on pack. - The Epic .droiddeck-launch.bat runs the game through it for Epic titles known to need it (GTA V, GTA V Enhanced, RDR2, RDR, GTA SA DE, Returnal, Phantom Blade: Executioners), or for any Epic game whose per-game environment sets DD_EPIC_PARENT=1; DD_EPIC_PARENT=0 turns it off. Those titles also start without Steam's SteamAppId. Without the staged stand-in the game starts directly, as before. - Steam launch options now reach Epic games (%*). - The launch hook fetches the pack when such a title finds it missing. - Rockstar's launcher found no Social Club SDK in the prefix and ran Social-Club-Setup.exe /silent, which never exits under Wine. For Epic titles that carry a Rockstar SDK installer, the hook now extracts the SDK from the launcher's own Redistributables copy (the version the launcher compares against) or, before the launcher is installed, from the game's copy, and registers it. It re-extracts when that installer changes and leaves the Rockstar Games Launcher key alone, so PlayGTAV still installs the launcher on first start. * fix(epic): fetch the parent stand-in exactly when the game will use it; keep Cargo output out of source digests The launch hook runs before droiddeck-game-env applies per-game variables, so it now resolves DD_EPIC_PARENT through droiddeck-game-env's own apply_config and game_id: an unlisted title with DD_EPIC_PARENT=1 fetches the pack, a listed title with DD_EPIC_PARENT=0 no longer waits for it. runtime_inputs no longer hashes the target directory beside a Cargo.toml under its source paths, so a local cargo build of a Windows helper does not fail verify(). tools/epic-launcher gets the same .gitignore as the other helpers. * fix(epic): a DD_EPIC_PARENT in the game's sidecar env decides the stand-in fetch too The .bat sets the sidecar's env before it reads DD_EPIC_PARENT, so that value overrides the game environment there; the launch hook now gives it the same precedence when deciding whether to fetch the pack. * test(epic): keep an inherited DD_EPIC_PARENT out of the launch hook tests --------- Co-authored-by: MaxsTechReview <maxjividen@gmail.com>
This commit is contained in:
1 parent
9925873764
commit
367151be2c
22 files changed
+543
-29
No files matched your search
@@ -137,6 +137,19 @@ class RuntimeInputsTest(unittest.TestCase):
|
||||
with self.assertRaisesRegex(ValueError, 'sources changed'):
|
||||
runtime.verify(self.root)
|
||||
|
||||
def test_cargo_output_beside_a_windows_helper_is_not_a_source(self):
|
||||
crate = self.root / 'tools/epic-launcher'
|
||||
(crate / 'src').mkdir(parents=True)
|
||||
(crate / 'Cargo.toml').write_text('[package]\n')
|
||||
(crate / 'src/lib.rs').write_text('old')
|
||||
runtime.record(self.root)
|
||||
(crate / 'target/debug').mkdir(parents=True)
|
||||
(crate / 'target/debug/build.log').write_text('local cargo test')
|
||||
runtime.verify(self.root)
|
||||
(crate / 'src/lib.rs').write_text('new')
|
||||
with self.assertRaisesRegex(ValueError, 'sources changed'):
|
||||
runtime.verify(self.root)
|
||||
|
||||
def test_missing_quest_driver_cannot_be_attested(self):
|
||||
(self.root / 'app/build/prepared-assets/graphics_driver/adrenotools-turnip25.1.0-quest1.tzst').unlink()
|
||||
with self.assertRaisesRegex(ValueError, 'quest1.tzst'):
|
||||
@@ -248,6 +261,21 @@ class RuntimeInputsTest(unittest.TestCase):
|
||||
runtime.check_apk(apk, self.root)
|
||||
runtime.check_apk(self.current_apk(self.root / 'current.apk'), self.root)
|
||||
|
||||
def test_an_apk_still_carrying_the_epic_parent_stand_in_is_rejected(self):
|
||||
epic = self.root / 'app/src/main/assets/linuxfs/usr/local/lib/droiddeck-epic'
|
||||
epic.mkdir(parents=True)
|
||||
(epic / 'EpicGamesLauncher.exe').write_bytes(b'MZ parent')
|
||||
self.packs()
|
||||
name = 'assets/linuxfs/usr/local/lib/droiddeck-epic/EpicGamesLauncher.exe'
|
||||
self.assertIn(name, runtime.outputs(self.root))
|
||||
apk = self.current_apk(self.root / 'bundled.apk', {name: b'MZ parent'})
|
||||
with self.assertRaisesRegex(ValueError, 'epic pack provides'):
|
||||
runtime.check_apk(apk, self.root)
|
||||
runtime.check_apk(self.current_apk(self.root / 'current.apk'), self.root)
|
||||
self.pack('epic', {'EpicGamesLauncher.exe': b'MZ older parent'})
|
||||
with self.assertRaisesRegex(ValueError, 'epic is missing or has a stale'):
|
||||
runtime.check_apk(self.current_apk(self.root / 'current.apk'), self.root)
|
||||
|
||||
def test_an_apk_still_carrying_the_powervr_runtime_is_rejected(self):
|
||||
apk = self.current_apk(self.root / 'bundled.apk', {'assets/hybris/runtime.tzst': b'runtime'})
|
||||
with self.assertRaisesRegex(ValueError, 'powervr pack provides'):
|
||||
|
||||
Reference in new issue
Block a user