Repository navigation
Conversation
XPackageMount read the mapping into 1,024 bytes and refused a path longer than 259 characters. PR ItsNotRexed#7836 reads the whole mapping and keeps the path in a std::string sized by XPackageGetMountPathSize, so update the environment-override table and the buffer sentence. Depends on ItsNotRexed#7836.
|
Tested 042fc16 on Arch Linux, Python 3.14.10, CPU only: pass — first Linux check. test_docs_env_vars 4/4 OK (covers the edited LEONIDA_* table). check_no_game_data clean; compileall clean. Docs-only change. AI-assisted. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: #7599 (comment)
Depends on: #7836 (this documents the behavior it introduces; merge it first, or this page is ahead of the code)
What and why
runtime/README.md'sxgameruntime.dllenvironment-override table documents two limits that #7836 removes:LEONIDA_CONTENT_PACKAGESwas "up to 1,023 characters", and a mount path "longer than 259 characters" wasERROR_INSUFFICIENT_BUFFER. xgameruntime: XPackageMount accepts mount paths longer than MAX_PATH and mapping values longer than 1023 chars #7836 reads the whole mapping (it asks for the size and grows the buffer) and keeps the path in astd::string;XPackageGetMountPathSizereports the size andXPackageGetMountPathfills the caller's buffer, soMAX_PATHno longer limits either.LEONIDA_DEVICE_TYPE,LEONIDA_ANALYTICS_FORM,LEONIDA_PACKAGE_ID,LEONIDA_PACKAGED), but not for the content-package mapping any more, so it now says "the fixed-size answer it fills".Checked against
c5094e1dc9(#7836):resolve_package_pathno longer has anout/out_cap;XPackageMountstores the returned string; the onlyMAX_PATHleft in the shim isLEONIDA_GAME_DIR(xgameruntime.cpp:1014), which is a different variable. The remainingXPackageGetMountPathrule (pathSize < size + 1→ERROR_INSUFFICIENT_BUFFER) is kept in the sentence.Tested
macOS arm64 (Apple M3 Pro), Python 3.15.2, docs only, no GPU or game files (the Windows
xgameruntime_testis covered by #7836's own run):python -I tests/test_docs_env_vars.py,test_docs_table_rows.py,test_docs_list_items.py,test_docs_repeated_lines.py: OK.python -I tests/test_docs_links.py: the same one failure asmaindde82f27e(docs/dev-tools.mdanchor through the unclosedruntime/README.mdfence, runtime/README.md: close the fence that swallowed the second half of the page #7217/runtime/README.md: close the code fence that hid the headings after the 1D render targets section (EGEN-RUNTIME-README-FENCE) #7351, anddocs/gpu_test_results.md, docs/gpu_test_results: link the RX 9070 GRE note from the repository root #7531/docs/gpu_test_results: link the RX 9070 GRE note with ../ (test_docs_links red on main) #7532).python -m compileall -q make_game.py tools tests: OK;python -I scripts/check_no_game_data.py runtime/README.md: exit 0;git diff --check: clean.AI-assisted: yes (an agent session).
Checklist
docs/design.md, with how it was confirmed. (No translator rule here.)