The tab layout from #2798 moved Stores into More for anyone who never
arranged their tabs, so the Battle.net and Epic launchers on the Stores page
looked gone after updating from Stable. A layout someone saved is kept.
* fix(test): ProtonMenuAutoTest no longer fetches Proton releases from GitHub
aCachedCheckUpdatesOnlyInstalledFamiliesAndReplacesOlderDroidDeckProton left experimentalRefresh at its default, which downloads the release list with 10 s connect and 15 s read timeouts, so a slow or rate-limited network blew the test's 5 s wait.
* fix(test): a background-thread error no longer halts the unit test JVM
Every Robolectric test runs App.onCreate, which chains CrashHandler onto the default uncaught-exception handler. A plain JVM has none, so the first test's handler halts with exit 2 on any later uncaught error, and the chain grows by one layer per test. A Robolectric lifecycle plugin now resets the default handler to a printing one before each test.
* fix(build): helper script edits no longer invalidate the prepared runtime, and every build uses CI's NDK
* docs(agents): helper script edits no longer need build_local.sh
* feat(onboarding): one setup card, Steam client and Proton downloaded in the background, no component toast
* feat(onboarding): an optional Bluetooth controllers row in the setup card asks for the permission up front
* feat(onboarding): prefetch Steam's whole package cache, one foreground notification, child-process setup while downloads run
* test(steam): the cache pass keeps packages under Steam's names and is not repeated
* feat(onboarding): unpack the whole Steam client ahead of time and record it as installed, downloads no longer wait for a cool device
* feat(onboarding): setup progress on the Steam home page, Bluetooth asked only from the setup card, Steam unpacks its own files
* fix(onboarding): review fixes: removal does not report setup progress, cancel stops the whole prefetch, cache files are verified, no resume toast
* fix(onboarding): a cancelled prefetch is never a setup failure
* fix(onboarding): the Steam fact is updated atomically
* feat(onboarding): Bluetooth controllers moves into the Steam integration list
* ci: keep unit-test scratch out of the runner's shared /tmp
Test JVMs now write temp files under the test task's build folder,
which checkout wipes on every job, so a killed run no longer leaves
Robolectric and JUnit folders behind in /tmp.
Self-hosted runners also clear stale test folders they own in /tmp,
drop the regenerable Gradle build cache when the workspace has under
20 GB free, and log disk use so a full disk is visible in the job.
* test(agent): size check no longer depends on the temp path's length
A symlink's own size is the length of its target path, so the old
100-byte bound failed once the temp dir moved under the build folder.
* ci: never remove a mount point while clearing runner scratch
* ci: keep a scratch folder that anything inside it touched recently
* ci: keep a scratch folder the freshness scan could not read
* feat(steam): first-run defaults for big art on Library home and the bouncing logo screensaver
* fix(steam): seeded keys land in the root store when nested stores close on its last line
* feat(ui): a More tab in the session menu keeps the pages you use least, and holds the way to arrange them
* fix(ui): bumpers walk only the strip, and back leaves a page kept inside More
* feat(ui): a Back to More row at the top of pages kept inside More
* refactor(ui): the arrange pages editor reuses the Edit tabs More divider
* feat(ui): the Session page can be kept inside More
* fix(ui): the on-screen bumpers step across the strip like the physical ones
* fix(addons): CurseForge connects once, reuses its game instance and skips rescans after its own changes
* fix(addons): a settled list is dropped by a refresh, a later change or a newer change
* fix(curseforge): publish the report under the same lock as the turn check
An older change could report its list after a newer one had already
reported, so the fallback marks could miss add-ons the newer change
installed.
* feat(ui): resize the session menu by its edge handle, and set dual screen to auto, on or off from the menu
* fix(ui): the session menu resize handle follows the finger across several moves per frame
* fix(ui): the closed agent menu button has no gap inside its outline
* feat(ui): the session menu's resize handle hovers just past its left edge
* fix(session): turning dual screen on from the menu moves the menu itself to the second screen
* fix(ui): keep the menu width bounds current and restore a pinned second-screen menu after backgrounding
Forever has its own launch code and installs headlessly through its
product code like the other titles, but the store hid it. It is now
listed and hidden once installed.
* fix(nativeguest): x86-64 path system calls and SIGSYS handlers stay inside the rootfs hook
FEX passed most guest path system calls to the kernel with an inline svc, so the
native path hook never mapped them, and it mirrored guest SIGSYS handlers with a
raw rt_sigaction that replaced the hook's own handler, after which the next
blocked system call killed the program. Path calls now go through libc's
syscall(), which the hook maps (guarded until the hook is initialised so an early
allocator cannot deadlock), and a SIGSYS handler set through syscall() is
recorded and chained like one set through sigaction().
* fix(ddexec): a program that re-execs itself keeps the rootfs hook
A re-exec through /proc/self/exe starts the program through the guest
ld.so again but left out the hook, so the child saw host paths. Steam's
reaper then recorded host install folders, and Battle.net games moved to
a mapped drive the Library could not resolve. The re-exec now preloads
the hook of the root the same way the first start does.
* feat(files): add a plain text editor to the file manager
* fix(files): address CodeRabbit review on the text editor
- compose the editor instead of the toolbar so EXIT can't bypass the
unsaved-changes guard
- read through a capped stream, keep undecodable files read-only, and
preserve POSIX permissions via staging-file rename with no direct-write
fallback
- serialize saves, keep dirty consistent across concurrent edits, reset
match index on text change, fix empty-state counter and read-only
replace buttons
- scroll match into view horizontally; ignore cursor-only edits for dirty
- add tests for literal U+FFFD files and the capped reader
* fix(files): treat rename failure as save error and follow symbolic links
* test(files): assert the resolved save target without canonicalizing it
---------
Co-authored-by: Dantalian <Dantalian-dev@users.noreply.github.com>
A row shown as installed by its toc project id before the manager's first
report had nothing to delete when the manager did not list the project, and
the dialog reported success. The dialog now falls back to the folders whose
toc names the project, deletes them through the existing addon delete, and
shows the delete error when no folder matches.
* fix(addons): show installed addons as installed while the manager rescans
Opening the download dialog starts a fresh scan of the addon manager's
installed projects, and every row showed Install until it answered
(about 20 s). Rows now start from the manager's last report, kept only
for projects whose folders are all still on disk, and its new report
takes over, Update state included.
* fix(addons): match installed addons by their toc project id before the first report
Before the addon manager has reported at all, a search row whose project id
matches an installed addon's X-Curse-Project-ID shows as installed. Placeholder
ids are ignored and the manager's report always takes over.
* fix(addons): read toc fields from flavour tocs and keep known state when a scan fails
An addon whose main toc is a stub keeps its version and project id in the
flavour tocs, so missing fields are now filled from the next toc in order.
A failed manager scan now falls back to the last known installed state
instead of clearing it.
Some addons keep their data as metadata lines in the .toc (one has a
57 MB .toc with 400k "## X-..." lines). Opening the Addons tab read the
whole file into one string and kept every metadata line in a map, so each
opening allocated 220-270 MB for a moment and could push the app past its
heap limit. Stream the .toc line by line, keep only Version and
X-WoWI-ID, and stop once both are found.
* fix(addons): CurseForge rows follow CurseForge's own installed list
The CurseForge source reads installed state and available updates from
CurseForge's installed projects after asking it to rescan the game
instance, so addons removed from disk show Install again and out of date
ones show Update, which updates through CurseForge. Deleting an addon
from the addon list uninstalls it through CurseForge when CurseForge
manages it, so its list and the files stay in step.
* Delete addons through CurseForge only while it is already linked
* Link CurseForge on the Addons tab and give its rows Update and Uninstall
* Match WoWInterface addons to the AddOns folders on disk
The WoWInterface source now reads each addon's folder list and marks it
installed when every folder is on disk, whichever source installed it.
Deletes from that source go through CurseForge while it is linked.
* Fix Compose tests hanging after a dropped UI dispatch and stop CurseForge on tab dispose
A non-Compose test that runs the real App after a Compose test in the same
Robolectric sandbox leaves AndroidUiDispatcher flagged as scheduled while its
looper message is dropped by the sandbox reset, so global snapshot changes are
never applied and every later Compose test times out waiting for idle. The
shared compose rule now detects that state and re-arms the dispatcher.
CurseLink.close runs the stop on a job owned by the link, so the tab test can
join it and prove no CurseForge work remains after the tab is disposed.
* Match add-on folders by case, offer only real updates, settle deletes on disk
A delete that CurseForge finished before its link dropped now counts as
done when the folder is already gone. Managed uninstalls only consider
projects whose folders are all present, and folder names resolve
case-insensitively everywhere. Update is offered only for a newer
version, falling back to the source's current file when versions do not
compare. The test compose rule also re-posts a dropped frame dispatch.
* fix(fex): signal return restores the interrupted syscall state
A guest rt_sigreturn goes through FEX's syscall stub, which marks every
static register as spilled. Returning to unchanged JIT code skipped the
stub's reset, so later asynchronous signals skipped the register spill
and guest handlers read stale registers. CoreCLR's GC suspension reads
and redirects that context, which made x86-64 .NET programs fail with
random access violations. Restore the value saved at signal entry.
* fix(addons): run CurseForge headless from the addon browser, without a session
- The CurseForge source starts the app in its own headless gamescope
(droiddeck-headless, shared with the Battle.net Agent) instead of a hidden
session: no SessionService, compositor output or ImageReader.
- The helper's start keeps running until the app exits, so the app lives
for as long as the addon browser holds that guest command; closing the
dialog asks the app to quit, stops its process group and cancels the
command, which ends the app, its gamescope and the guest.
- An app the user already has open is reported busy and left alone.
- Removes BackgroundSession and the CompositorHost start path it shared with
SessionActivity, with their tests.
* fix(addons): bind each CurseForge stop to its launch and keep the inspector URL out of logs
A stop now only acts on the launch that registered it, so a late stop
from a closed browser cannot end a newer launch, and the browser stops
once. Command logs redact the inspector URL. The signal probe reports a
sender thread that cannot start, sets ECX before the measured region and
its test accepts a valid overshoot of the target count.
* fix(fex): unblock the probe signal before sampling
* feat(addons): add a CurseForge source to the addon browser
Search and install CurseForge addons from the Download addons window by
driving the installed CurseForge app in the background: it starts minimized
on the session's X display with its inspector bound to 127.0.0.1, and the
window's own renderer services handle game detection, search, install and
shutdown. Sign-in stays inside the CurseForge app.
The Install buttons in the addon list now size to their label, so the label
is centered and the button matches the other compact buttons.
* fix(curseforge): secret inspector URL, hold mode and serialised starts
- Start CurseForge with its Node inspector on 127.0.0.1:0 and publish only
the UUID websocket URL, kept in the 0700 state directory, so no fixed
unauthenticated debug port is exposed.
- The agent evaluates through that URL instead of a fixed port.
- Add a hold mode that runs as a session program and stops the app on
exit, and a lock so hold and start never launch twice.
* feat(addons): run CurseForge in a hidden session when none is running
- Opening the CurseForge source with no session starts one headlessly
(offscreen compositor output, shared start path with SessionActivity via
CompositorHost) running the CurseForge hold helper; leaving the dialog
stops the app and that session. A session the user already had is
reused and left running.
- Drop the "start a session" notice from every locale.
- Addon browser link: cleanup shares the link's lock off the UI thread,
stops the app at once on close, refuses work after close and stops a
launch that finishes after close.
- CurseForgeApp.start stops the app before every failed return.
- instanceFor returns no instance when the populated list has no match.
* Harden headless CurseForge session and helper lifecycle
Scope the hidden session to its id, roll back partial starts, release the
offscreen reader once the session ends, re-acquire the inspector when its
endpoint goes away, bound DevTools calls by one deadline, key the installed
snapshot by target, track the helper launch by pid start time and directory,
fail on lock errors, and update the HDR gate test to its new location.
* Map DevTools send failures and recheck the hidden session id
* fix(addons): bind the hidden session to the id it claims at launch
* Keep the CurseForge helper quiet when no launch is recorded
* feat(launcher): LT and RT step between the main tabs from anywhere in the launcher
LT and RT move to the previous and next main tab on every layout. The activity handles them before any page sees the key, so a focused control, an embedded Android view such as the terminal, or nothing being focused no longer swallows them; dialogs and popups keep their own keys. Pads that report the triggers only as axes, like the Xbox Wireless Controller, get an L2/R2 press when a trigger passes 60% of its travel; pads that send their own trigger keys are left alone.
* fix(launcher): trigger tab steps tick, drop a pending press on focus loss, and move once per pull
Controller haptics now ticks for L2 and R2. A synthetic trigger press waiting its 40 ms is cancelled when the launcher loses window focus or is destroyed, so a dialog that opens in between keeps the page behind it. Each pull is tracked: when a synthetic press has gone out, the pad's own trigger key for the same pull is swallowed instead of stepping a second tab.
* fix(agent): keep the composer above the keyboard outside fullscreen
* fix(ui): release a search field when another control is tapped
* fix(ui): release the add-on search field in its dialog, and let a reopened search take focus
* fix(ui): a drag that returns to where it began does not release the search field
The Screen visibility group sat above the Layout group on the Main screen page, so in landscape its description pushed Edit on screen below the fold and the page looked like it had no editor. The Layout group now comes first on both screens.
* fix(input): controls edited in portrait keep their places in the panel below the game
The panel below the game in portrait always regenerated the stock
layout, so positions saved from the Controls editor were dropped and
only the button styling carried over. The panel now orients to the
portrait frame and fits the edited controls into the panel at their
saved proportions; untouched stock layouts keep the generated panel.
* Keep the Deck panel's trackpads and fitted sizes for edited portrait controls
## Summary
Splits the session resolution setting into two: **Landscape resolution**
and **Portrait resolution**. Each has the same options as the old
Resolution row, plus a Follow option so one orientation can mirror the
other.
## Why
A single resolution has to serve both orientations. Presets and Match
screen flip automatically in portrait, but a custom size is used exactly
as typed, so a landscape size in a portrait session is wrong. Users who
play in both orientations couldn't pick a good size for each.
## Behavior
- The Display tab shows **Landscape resolution** and, underneath it,
**Portrait resolution**. Both offer the full existing list: presets,
Match screen, Follow screen, scaled follow options and Custom.
- Each row has an extra option at the top. **Follow portrait** (on the
landscape row) and **Follow landscape** (on the portrait row) use the
other orientation's choice, so someone can set one resolution and let
the other mirror it. The label shows the size it resolves to.
- A session picks the landscape or portrait choice from its orientation.
This uses the same orientation check as the output size, so the
unfolded-controls layout still counts as landscape.
- Custom WxH sizes are flipped to match the target orientation when
followed, e.g. portrait following 1280x720 uses 720x1280.
- If both rows would follow each other, the other row is set to the
concrete size it currently resolves to, so there is never a loop and
nothing visibly changes.
- The glasses output keeps using the landscape resolution.
- Applies to the Steam and Desktop Display tabs, which share the same
row.
## Compatibility
- The existing saved choice (`displayResolution.<mode>`) is now the
landscape resolution, so existing users keep their setting.
- The portrait choice is stored as `displayResolution.portrait.<mode>`
and defaults to Follow landscape, so portrait sessions behave as before
until it is changed. The settings reset covers it through the existing
`displayResolution.` prefix.
- One visible difference: a typed landscape custom size, used as typed
in portrait before, now flips to portrait while portrait follows
landscape.
## Known limitation
"Follow screen" is still decided once when the session starts, not on
every rotation. Re-evaluating it on rotation could make the window
orientation flip repeatedly when no orientation is pinned.
## Changes
- `SessionDisplay`: `LINK_LANDSCAPE` / `LINK_PORTRAIT`, `isLink`,
`orientCustom`, `effectiveChoice`
- `SessionPrefs`: `resolutionStored` (raw value per orientation),
`resolutionChoice(..., portrait)`, `setResolutionChoice(..., portrait)`
with the loop guard, `resolutionChosen(..., portrait)`
- `SessionActivity`: `portraitOutput()` drives the output size,
follow-screen choice and follow scale; the Match-screen default for
programs that draw at the panel size checks the matching orientation
- `ResolutionRow`, `ModeSettingsDialog`, `FrontEndActivity`: two rows,
the Follow option, state and actions
- `DeviceReport`: logs landscape and portrait separately
- Strings: `display_resolution_landscape`,
`display_resolution_portrait`, `display_follow_landscape`,
`display_follow_portrait` in all 33 locales; the unused
`display_resolution` is removed
- Tests: `PortraitResolutionTest`
## Testing
- Unit tests added for the preference logic, follow resolution, loop
guard and reset.
* feat(addons): install the CurseForge app and update addons per game
The Addons tab installs the official CurseForge Linux app from its own
update feed, checks it against the feed's SHA-512, shows its version,
offers updates and removes it with the components delete button.
Installed addons show their .toc version and are checked against
WoWInterface by X-WoWI-ID or the recorded source of addons installed
from the Download window; Update replaces them in place.
The CurseForge web search chip is replaced by the app.
* fix(addons): address review on update ordering, flavor filter, origins lock and failed checks
* fix(addons): compact scrollable addon browser with list rows
* fix(addons): compare release times as instants and replace the sources file atomically
* fix(addons): open the addon browser at the top of the list
* Keep the addon browser's search focus and installed version in sync
* Track the search field's own focus in the addon browser
* Key the installed addon version by install target
* Install rar and 7z addon archives
* fix(input): move and resize the D-pad as one control, per-control button size and sizes above 100%
* fix(input): controller art for copied layouts, keep the minimum size when shrinking the D-pad
Copies and per-game versions of the on-screen gamepad now draw the same controller art and placement as the original, and resizing the D-pad from a corner or the per-control slider keeps every arrow at a usable size.
* Keep other controls' moves when undoing a repeated resize
* fix(display): preserve padded layer buffer layouts
* fix(display): fall back when layer allocation fails
* fix(display): write linear targets at their row pitch
* feat(input): restore controller-specific overlay designs
* fix(input): restore portrait controller layouts
* fix(input): fix duplicates, rotation and tablet placement in the controller overlays
- Hide the below-game controls while the layout editor is open, and give the
editor the same cutout insets and optional Steam controls as the game view,
so the editor never shows a second copy of a control.
- Keep a separate portrait frame for layouts edited in portrait. A layout
edited in one orientation keeps the stock kit positions in the other instead
of being stretched across.
- Anchor the overlay to the bottom of the screen and cap the portrait panel's
physical size, so tablets keep the controls in the lower half.
- Put L2/L1 and R1/R2 side by side in every kit.
- List deleted stock controls in the editor's Add dialog so they can be
restored, and keep removed rear buttons and trackpads removed.
* fix(input): scale edited overlay layouts around the controller artwork positions
* fix(input): keep stock landscape controls, color setting, keyboard action and displayed frame edits consistent
* fix(input): draw the layout editor with the kit artwork at the size it will be saved
The editor placed its controls in onSizeChanged, which runs during layout, so
the preview canvas was rebuilt or remeasured too late: new controls were laid
out at 0x0 and existing ones kept stale sizes, losing the kit D-pad artwork.
Placement now happens in onMeasure, before the canvas measures its children.
The editor preview used the saved button size instead of the slider value, so
the slider showed a different layout from the one Done saved.
D-pad pieces that joined or left the kit cross were never redrawn, so moving
one piece hid all four.
* fix(input): keep portrait rear buttons and trackpads where they were saved
A portrait save stores the rear buttons and trackpads only in the rotated
frame, but loading that frame only moved controls that already existed in the
main frame, so they were regenerated at the screen edges.
* fix(input): adopt the displayed portrait frame for layouts edited only in landscape
Button size and reset positions now switch to the frame on screen whenever the edited layout's
orientation differs from the editor, not only when a rotated frame exists, so a portrait change
is saved as the portrait frame instead of overwriting the landscape edits. The tools panel stays
open while that happens.
* fix(input): keep a separate button size for the rotated frame
* fix(input): take the shown frame's button size whenever editing switches orientation
---------
Co-authored-by: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com>
* feat(launcher): tick haptics for controller navigation, off for touch
* docs: regenerate settings map for controller haptics
* fix(launcher): tick for hat and stick navigation, which arrive as joystick-source keys
* fix(launcher): tick before the Components tab consumes L1/R1
* fix(battlenet): follow the selected FEX instead of pinning a d2rfix build
The Battle.net prefix forced the newest FEXCore d2rfix package from the Nightlies listing, which stopped updating. Its fixes are in the bundled and nightly FEX, so the prefix now uses whatever FEX is selected. Existing d2rfix selections for the Battle.net profile are cleared once; any other choice is kept. The DXVK memory cap and Start without Steam defaults are now applied when a session starts.
* fix(battlenet): import the legacy plugin state before unpinning the Battle.net FEX
* feat(session): arrange and hide the in-session menu pages
* fix(session): the end-session button is a true circle pinned to the right of the menu header
* fix(session): arrange-pages drag reads the current list; reset reloads the page layout even if the activity was recreated
* fix(session): Back leaves Arrange pages first; UI zoo previews don't save page layout
* fix(session): Back on a grabbed page row restores its order before anything else
Accept generated portrait sizes on reload, use the right orientation and output target when deciding follow screen, show the real size behind each Follow option, treat a saved portrait Desktop resolution as chosen, and update the orientation hint in every locale.