Skip to content

fix(libc): provide ASOBI_ROOT environment variable for title path resolution - #81

Open
Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/7715
Open

Thimo188 wants to merge 1 commit into
mainfrom
upstream-pr/7715

Conversation

@Thimo188

@Thimo188 Thimo188 commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Imported from boykopovar/AnyPS5#7715, originally opened by renzipego-cpu.

Source commit: 783fa9b83f5f0ac617d4b0f05321a34c1279cb7f. The import branch preserves this fetched upstream PR snapshot. The description and validation below are copied from upstream; no new code changes or test runs were made for this import. Original reviews, discussions, and attachments remain at the linked upstream PR.


Carries the rework of boykopovar#4274 (StarMrGamer:fix/astrobot-asobi-root-env@0528bae8), pushed by its author after the verification request in boykopovar#3480, rebased onto current main.

What

ASTRO BOT (PPSA21564) reads ASOBI_ROOT through getenv to build its asset paths; without it the sound configuration never loads and start-up stops at the title's own assertion:

ASSERT: D:\asobi\6.0\source\engine\app\Game\Sound\SoundManager.cpp:306
Assertion failed: defaultBusses.size() == 1

(reproduced on Windows in boykopovar#3480; the issue was closed with the author's private stack, none of which is on main). The guest environment starts empty by design (70ef371, docs/dev/debt/libc.md: never reads the host's), so the title has no way to see the variable. This seeds one console-provided default, ASOBI_ROOT=app0, into the guest environment - the value follows the homebrew payload convention. The host-seeding half of the carried branch was dropped in the rebase: main's empty-environment decision postdates the branch base and takes precedence. The debt entry is updated accordingly.

Tested

Windows 11, MinGW-w64 GCC 15.2.0 (WinLibs r7), Ninja, Release, BUILD_TESTING=ON, full build including libs: asobi_root_environment (default value, setenv override, absent variable) and guest_environment pass. python tools/check_conventions.py --base origin/main passes; tools/pr_overlap.py was run against the branch (only closed predecessors boykopovar#4274/boykopovar#3959/boykopovar#4565; no open PR provides this). The title itself was not rerun with this build.

Checklist

…olution

ASTRO BOT builds paths with %ASOBI_ROOT% tokens and expands them via
getenv. Without the variable the title's expansion leaves the literal
token, stat calls fail, and the sound config never loads.

Set ASOBI_ROOT=app0 in the guest environment at startup. Titles can
override it with setenv if needed. The /host/ mount already maps to
the run directory, and /host/app0/target/data symlinks to the title's
data directory.

Tested: ASTRO BOT (PPSA21564) boots without requiring a user-set
ASOBI_ROOT environment variable. The sound config loads and the title
runs stable for 60+ seconds.

Tests: asobi_root_environment verifies getenv returns app0 by default
and respects setenv overrides. All tests pass except linux_guest_stack
(host quirk) and agc_driver_pixel_interlock (unrelated).
@github-actions github-actions Bot added unblocks title Names a title ID on the Unblocks line needs rebase Conflicts with main, rebase needed fix error Closes an issue (Fixes #N) labels Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix error Closes an issue (Fixes #N) needs rebase Conflicts with main, rebase needed unblocks title Names a title ID on the Unblocks line

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ASTRO BOT (PPSA21564): SoundManager asserts defaultBusses.size() == 1 during start-up (main 1be0a7ce)

2 participants