mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-05 20:45:43 +00:00
Original Xbox games sold for PC through the Xbox store (Xbox360BackwardCompatibil.* packages: Fuzion Frenzy, BLiNX, Conker, Crimson Skies, Grabbed by the Ghoulies, Morrowind, Red Faction II, ...) now start and play on DroidDeck-Bionic. - droiddeck-xbox: keep the GameInput redistributable, remove its service class; run install actions with FEX's safe settings; find MicrosoftGame.config in any case and skip one that does not parse. - droiddeck-game-env: fix rule for these games turns on the emulator fixes in the Wine, FEX and VKD3D-Proton builds made for them. - Components: each installed game gets the Xbox FEX, VKD3D-Proton and DXVK builds, never over a player's choice (also not one made during the download). - Xbox store: these games show the size of their console package. - DroidDeck-Bionic launch.sh keeps the Wine and VKD3D-Proton switches; bionic pack uses the v18 layer with the fixes (released as DroidDeck-Bionic 14.1 r104). - Xbox backend: purchases that name a legacy marketplace offer reach the library.
33 lines
2.0 KiB
Python
Executable File
33 lines
2.0 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
import hashlib
|
|
import json
|
|
from pathlib import Path
|
|
import subprocess
|
|
import sys
|
|
|
|
recipe = Path(__file__).resolve().parent
|
|
cache = Path(sys.argv[1]).resolve()
|
|
lock = json.loads((recipe / 'backend.lock.json').read_text())
|
|
local_patches = ['droiddeck-credentials.patch', 'droiddeck-launch-view.patch', 'droiddeck-library-subscriptions.patch',
|
|
'droiddeck-credential-fallback.patch', 'droiddeck-credential-diagnostics.patch', 'droiddeck-cloud-token.patch',
|
|
'droiddeck-licensing-device-ticket.patch', 'droiddeck-dlc-mount.patch',
|
|
'droiddeck-legacy-packages.patch', 'droiddeck-legacy-install.patch', 'droiddeck-legacy-run.patch',
|
|
'droiddeck-msixvc2.patch', 'droiddeck-legacy-offer-parent.patch']
|
|
identity = hashlib.sha256((recipe / 'backend.lock.json').read_bytes() + b''.join((recipe / name).read_bytes() for name in local_patches)).hexdigest()
|
|
source = cache / ('source-' + identity[:16])
|
|
if not (source / '.prepared').is_file():
|
|
if source.exists():
|
|
raise RuntimeError('Incomplete Xbox source directory; inspect it before retrying: ' + str(source))
|
|
source.mkdir(parents=True)
|
|
# Nexus keeps its Xodus changes as commits in its backend fork (since 0.2.15), not as patch files.
|
|
subprocess.run(['git', 'init', '-q', str(source)], check=True)
|
|
subprocess.run(['git', '-C', str(source), 'fetch', '-q', '--depth', '1', lock['repository'], lock['commit']], check=True)
|
|
subprocess.run(['git', '-C', str(source), 'checkout', '-q', '--detach', 'FETCH_HEAD'], check=True)
|
|
assert subprocess.check_output(['git', '-C', str(source), 'rev-parse', 'HEAD'], text=True).strip() == lock['commit']
|
|
assert hashlib.sha256((source / 'Cargo.lock').read_bytes()).hexdigest() == lock['cargoLockSha256']
|
|
for name in local_patches:
|
|
subprocess.run(['git', '-C', str(source), 'apply', str(recipe / name)], check=True)
|
|
(source / '.prepared').write_text(identity + '\n')
|
|
assert (source / '.prepared').read_text().strip() == identity
|
|
print(source)
|