fix(bionic): name guest files by their Android paths in store launches

DroidDeck-Bionic's Wine has Android's root on Z:, but DroidDeck's store
launch files and helpers name guest files by guest Z: paths. A Ubisoft
game then skipped its service and started directly (Watch_Dogs exited at
launch); the Epic parent stand-in, GOG/Rockstar registry values, reg.exe
imports and the EA probe pointed at the wrong tree in the same way.
Reported by 2-Shar on PR #3037.

- proton: map guest Z: paths in every run argument (also NAME=Z:..., as
  in an installer's /DIR=) and export DROIDDECK_GUEST_ROOT, the guest's
  root as this Wine names it; launch.sh keeps it.
- StoreLaunch: the Ubisoft service and the Epic parent stand-in start
  from %DD_R% (DROIDDECK_GUEST_ROOT, else Z:). An installed Ubisoft
  game's older launch file is rewritten at the next library scan.
- droiddeck-store-launch: windows_path() asks DroidDeck-Bionic's
  getcompatpath when that tool runs the game.
- droiddeck-gog-maintenance: name the tool for the registry step.
This commit is contained in:
The412Banner committed 2026-11-23 00:44:48 +00:00
1 parent 2aae4b2284
commit f17d3ddaad
9 files changed
+194 -14

No files matched your search

+17
View File
@@ -1005,6 +1005,23 @@ class Ubisoft(unittest.TestCase):
self.assertEqual('C:/users/steamuser/Saved Games/Ubisoft/u1/109/', launch['saves'])
self.assertTrue((self.compat_data / 'pfx/drive_c/users/steamuser/Saved Games/Ubisoft/u1/109').is_dir())
def test_a_bionic_launch_names_the_android_files(self):
self.runtime()
tool = self.root / 'DroidDeck-Bionic-12.8-r41-Proton'
(tool / 'bionic').mkdir(parents=True)
(tool / 'bionic/launch.sh').write_text('')
proton = Path(__file__).resolve().parents[1] / 'bionic-runtime/tool/proton'
(tool / 'proton').write_bytes(proton.read_bytes())
(tool / 'proton').chmod(0o755)
env = {'DD_STORE_PROTON': str(tool / 'proton'), 'DDNATV_ROOT': '/data/user/0/app/files/linuxfs',
'DDNATV_BINDS': '/storage/emulated/0/T:%s' % self.root}
with patch.dict(os.environ, env):
self.prepare(self.answer)
launch = json.loads((self.folder / store.UBISOFT_LAUNCH).read_text())
self.assertEqual('Z:\\storage\\emulated\\0\\T\\Games\\Stores\\Ubisoft\\Splinter Cell\\system\\SplinterCell.exe', launch['exe'])
for key in ('bridge', 'log'):
self.assertTrue(launch[key].startswith('Z:\\storage\\emulated\\0\\T\\cache\\'), launch[key])
def test_without_a_session_the_launch_file_is_removed_and_the_game_starts_as_is(self):
self.runtime()
(self.folder / store.UBISOFT_LAUNCH).write_text('{}')