* fix(game-env): the audio-stream probe of a game launch ends when the game does
* fix(game-env): the audio-stream probe checks the game is still running before each sample
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
Two problems with games set to "Start without Steam" on DroidDeck-Bionic.
1. launch.sh set WINE_LSTEAMCLIENT=1 for every launch, so Wine replaced any steamclient(64).dll
a game loads with lsteamclient, DroidDeck's bridge to its Steam client. A game started
without Steam has no Steam client behind it; one that brings its own steamclient64.dll (a
Steam emulator such as gbe_fork's ColdClient loader) quit after its splash screen because
SteamAPI_Init failed. With DROIDDECK_NO_STEAM on, launch.sh now sets WINE_LSTEAMCLIENT=0
unless the player set a value.
2. Wine's xinput reads the HID reports winebus makes from the evdev events fakeinput replays
out of each controller ring, through a queue per handle. A game that reads them slower than
the pad reports gets old stick positions: in Halo: The Master Chief Collection the character
kept moving for a second or two after the stick was let go (vibration off in DroidDeck and
in the game changed nothing).
dd-directcontroller (tools/bionic-runtime/dd-directcontroller) is an XInput DLL set
(xinput1_1..1_4, 9_1_0, uap; ARM64X for system32, i386 for syswow64) that answers
XInputGetState from the snapshot of the whole pad FakeInputWriter keeps in each ring file's
header (sequence-locked, read with 32-bit loads only). XInputSetState returns at once; a worker
thread hands rumble changes to a renamed copy of Wine's builtin xinput1_4
(dd-directcontroller-wine-xinput.dll), so rumble keeps DroidDeck's force-feedback path without
Wine's lock holding up a game thread. A pass-through mode sends every call to that copy. A
background thread reads the mode file every 250 ms ('1' direct, '0' pass-through) and does the
once-a-second ring and pad-node checks, so a game thread never waits on a file. Based on
Bannerlator's direct XInput DLL (GPL-3.0).
- launch.sh copies the DLLs into the prefix (replacing the links to the tool's builtins, never
writing through them), sets xinput*=n,b and writes the mode file next to the controller
folder (DD_DIRECTCONTROLLER_CONTROL) when the game is set to start without Steam;
DD_DIRECTCONTROLLER=0 starts it in pass-through, and a game no longer set to start without
Steam gets Wine's links back. DROIDDECK_NO_STEAM is kept in the environment it passes on.
- tools/bionic-runtime/build.sh builds and checks the DLLs (export tables of both ARM64X views,
imports, no TLS directory, version resource) with a pinned llvm-mingw and runs the host test
of the ring reader; the workflow caches the toolchain.
- App: a "Direct controller" switch under Controller > Device settings in the session menu,
shown while the running game uses dd-directcontroller. It writes the mode file, so the game
moves between the pad state and Wine's own xinput at once, and saves the choice for the game
(DD_DIRECTCONTROLLER=0). A session deletes the mode file at start, so only a launch that uses
dd-directcontroller brings the switch back. Translated in every language.
Review fixes: synchronized setting save; the DLL pins itself before its worker threads; pass-through forwards XInputPowerOffController; launch.sh keeps a native XInput DLL that is neither Wine's nor ours; switch requests run in order; XInputEnable reaches Wine's xinput when there is no rumble worker.
* Prepare Steam playtime before Android Native suspend
* Keep Steam wake recovery ordered and retry transient delivery
* Keep pending Steam wake recovery across idle requests
* Make Steam wake race tests wait on explicit gates
* Synchronize all Steam preparation timing tests
* fix: Share logs includes Easy Anti-Cheat launcher logs from game prefixes
Anti-cheat launch failures only show the real error code in anticheatlauncher.log inside the game's compatdata prefix, which Share logs never collected. Recent .log files under each prefix's EasyAntiCheat folder are now added under anticheat/<appid>/ with high share priority.
* Keep only the anti-cheat app ID readable and keep launcher logs from every library
A numeric folder name is readable only as the app ID right under anticheat/; elsewhere it is hashed as before. Prefixes for the same app ID in a second library go under anticheat/<appid>/library<N>/ so neither log is dropped.
* Keep signed compatdata prefixes and mark unreadable ones as partial in Share logs
* Keep discovery records inside the manifest limit
* fix(logs): keep both prefix folders when signed and unsigned app ids collide
* fix(logs): give each anti-cheat prefix its own sibling folder in the archive
* fix(logs): share the current session's game logs before anti-cheat logs
* fix(logs): order enhanced exports by share priority and record denied anti-cheat folders
* fix(gog): create ISI savePath folders on first launch
* Use the existing case of GOG save folder roots
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* Keep the session preload loadable when spare static TLS runs out
The syscall-dispatch selector pointer in the zram preload used the
initial-exec TLS model. That marks the whole libddsession TLS block
(about 1.8 KB) as static, so loading it at runtime needs that much spare
static TLS. Under proot there is not enough, and every guest program
failed with "cannot allocate memory in static TLS block". The default
model keeps the same per-thread behaviour without that requirement.
* Read the dispatch selector only once a thread has turned dispatch on
A thread's first read of the selector can allocate its TLS block when the
preload was loaded at runtime. The page-out handler and the prctl wrapper
now read it only after some thread in the process enabled syscall user
dispatch, so processes that never use it never touch the variable from a
signal handler.
* Keep the dispatch selector in a thread key so the signal handler never allocates
* Bind the selector lookup before the handler can run and refuse to arm dispatch without a selector slot
* fix(preload): retry selector key setup after key exhaustion
* fix(preload): publish the dispatch selector only after the kernel accepts it
* Use a keypad for wireless debugging pairing codes
* Make wireless pairing keys legible in SystemUI
* Fit both keypad rows in the heads-up notification
* Find the verified loopback ADB port after pairing
* Post the pairing keypad as a separate heads-up alert
* Keep the pairing keypad accessible and recover rotated ADB ports
* Show how to keep the pairing popup open
* fix(storage): record all-files access in session logs and warn when added games need it
* Cover all added games in storage access diagnostics
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* fix(fex): game debug logs reach games run on the x86-64 Proton
The x86-64 DroidDeck-Proton path runs the game through droiddeck-fex proton,
which applied per-game settings but never the Game debug logs or Detailed
graphics logs, so no Proton log was written for those launches. The proton
action now applies both after the game's settings, as droiddeck-game-env does,
and caps the Proton log size.
* fix(logs): Share logs keeps a session's game logs ahead of Steam client logs
The shared archive packed the Steam client's own logs (several MB each) before
the session's game logs, so the 64 MB budget could run out and drop the Proton
log Game debug logs had just written. Session-critical files go first, then the
session's game logs, then everything else.
Game Space's shoulder trigger settings have more than a button mapping.
The Air Triggers panel now offers the same options:
- Vibration when a trigger is touched.
- The shade Game Space draws on the screen edge under a touched trigger,
red for the left trigger and blue for the right.
- The trigger LED effect: off, steady or pulse. DroidDeck sends the code
RedMagic's lighting settings give that effect.
- Per trigger and layout: single tap holds the button while the trigger
is touched (the previous behaviour), long press keeps it pressed until
the next touch, and rapid fire clicks it while the trigger is held at
Game Space's low, normal or high click frequency (2, 5 or 10 clicks a
second).
Vibration, the shade and the LEDs follow the finger on the trigger, not
the clicks rapid fire sends. Long press and rapid fire press a toggle
button as a plain one, and on-screen buttons vibrate only for finger
presses.