Repository navigation
[BUNDLE] HLE host side (files, paths, host DLLs, display, xmem, net, speech): #337 #359 #357 #531 #1125 #133 #290 #207 #480 #76 #538 #997 #1169 #1193 - #1386
Conversation
`victory run GTA6.exe`, run from the game folder, gives an exe path with
an empty parent, and that empty folder was mounted as G:. An empty path
cannot be made absolute, so the root stayed empty and G:\x64\a.rpf
became \x64\a.rpf: the root of the current drive. The title then found
none of its files.
An empty root is now the current directory, which is what an empty
folder means everywhere else (`Path::new("").join("x")` is `x` in the
current directory). Passing a path with a folder in it is unaffected.
MapViewOfFile3 with MEM_REPLACE_PLACEHOLDER replaces exactly one placeholder: the range must be the placeholder's own. map() split the placeholder around the range and mapped one view over it, so it worked only when the range lay in a single placeholder. Every mapping leaves its reservation split at its ends and unmapping does not join the pieces, so after a partial unmap, a scattered mapping or a shorter earlier run, a run over those pages failed with ERROR_INVALID_ADDRESS and XMemMapPhysicalPages returned NULL, its range already unmapped. map() now splits only at the run's two ends and gives each placeholder in the range a view of its part. Placeholders are never coalesced: the host also coalesces placeholders of separate reservations, and pieces a title split itself would stay joined after the unmap. If a view fails, those made before it become placeholders again. The split call also frees memory that replaced a placeholder back to one, committed pages included, so split_at() splits only where everything below the split point is reserved. New tests: a run remapped after a partial unmap, a run from one placeholder into the next, a title-split piece kept through a map and an unmap, and a failed run that is rolled back without touching committed memory next to it. The first three fail on main (XMemMapPhysicalPages returns NULL). cargo test --workspace passes on Windows 11. Wine's virtual.c splits placeholders into separate views and reports them the same way (AllocationBase, region end, exact MEM_REPLACE_PLACEHOLDER match); not run under Wine.
The source resolver's rule (local files only) knew a share as `\..`, `//..` or `file://server/..`. The host knows more spellings: any two leading separators (`/\server\share`), the object manager's prefix (`\??\UNC\server\share`), and a `file:` URL with no host whose path starts with two separators (`file:////server/share`, `file:\server\share`, also percent-encoded). Those fell through as relative paths or drive-less local files and went to the host's resolver unchanged. They are refused now, naming the server. Paths with one leading separator, a drive after the slashes or the prefix, and the path of a URL that names this machine pass as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
host::module held the module cache's lock while it called LoadLibraryExA. Loading a DLL that is not loaded yet takes the OS loader lock, and title code runs under that lock too (a title DLL's thread attach, TLS callbacks run as threads start), where it can need the cache: any first use of a host! function, or a late-bound title DLL. One thread holding the cache and waiting for the loader lock, another holding the loader lock and waiting for the cache: the process hangs, and cannot even exit, as ExitProcess needs the loader lock too. The cache is now looked up, then unlocked for the load, then locked again to keep the handle; a thread that loaded the same DLL meanwhile got the same module, which stays loaded.
The MicrosoftGame.config reader ended a tag at its first '>', but XML allows '>' unescaped inside an attribute value. A value with one (DefaultDisplayName="A > B") cut the tag short: its '/>' was never seen, so the element stayed open and every element after it was read as its child. Game/TitleId and the storage quota were then not found, and the title ran as id 00000000 with no storage quota, its saves and temporary files in that folder, without a warning. A tag now ends at the first '>' outside quotes.
A refused XMemVirtualAlloc or XMemAllocDefault handed the title a null in silence, and the title then writes at null plus an offset, which reads like a title bug. In Marvisak#289 the faulting write is at 0x217800, the request's length 0x2173a0 rounded up to 2 KiB, so the base it built on was most likely such a null. At the commit limit, XMemVirtualAlloc now writes the same crashes.log report the physical-page commit writes since Marvisak#51 (the shared part is `commit_refused`); other refusals, and a host heap out of memory, are warnings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, and speech-to-text slots
Move the lexical drive, separator, verbatim and dot-segment decisions out of the Windows-only files module into a host-independent paths module with seven unit tests. The Windows module keeps only the host calls and delegates to the same rules. Add no behaviour change.
…ther Merges Marvisak#337 Marvisak#359 Marvisak#357 Marvisak#531 Marvisak#1125 Marvisak#133 Marvisak#290 Marvisak#207 Marvisak#480 Marvisak#76 Marvisak#538 Marvisak#997 Marvisak#1169 Marvisak#1193 onto main (ffe310e), each head unchanged, no conflicts. One change of mine: a test Marvisak#290 adds wrapped a raw string in format!(), which clippy::useless_format rejects under -D warnings; it now compares with the string directly. cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (379 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Runtime boot check on real hardware with a retail dumpResult: no difference from I merged head bea3c81 onto
Warnings: 7, the same kinds and counts as on Limits. Without input, the title stays on the first-boot screens. This run does not exercise saves, the intro video, the start screen, loading or the world. It shows only that the change does not break startup or the first menus on this machine. I did not run the PR's tests. Machine: Ryzen 7 7800X3D, RTX 4070 SUPER, Windows 11 25H2, game 1.0.2.1. AI-assisted (Claude Code). |
xmem.rs: main records which views show each page (shown) inside map_view; the bundle's PR moved the view bookkeeping to map(), per placeholder. The same bookkeeping now runs there for each view. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution. |
One PR in place of 14. The HLE PRs on the host side: runtime and host DLL loading, virtual-drive paths and files, media shares, display deferral, xmem pages, the net redirect and speech. Every head is merged unchanged onto
main(70564ae, the maintainer's 28 commits of Nov 24, 22:36 CET), and the result is built and tested together.What is inside
5cf259e5fd549b6397c6959acba26912a953efe102eda01ae55a3bae6ebd9ec11ca3ce4975fe6c02bdea90ccc765062e1337d1a0a585212778a4b62abb6071Changes made while bundling
No merge conflicts. One change of mine, in its own commit: a test #290 adds wrapped a raw string in
format!(), whichclippy::useless_formatrejects under-D warnings(#290's own CI run fails on it). It now compares with the string directly.Rebuilt on the new
main.mainmoved (28 commits by the maintainer); the branch is the previous one withmainmerged in. One conflict, inxmem.rs: main records which views show each page (shown,title_memory_aliased) insidemap_view, where one of this bundle's PRs moved the view bookkeeping intomap()(one view per placeholder). The same bookkeeping now runs inmap()for each view.Verification
Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):
cargo clippy --workspace --all-targets --locked -- -D warningscargo clippy --workspace --all-targets --all-features --locked -- -D warningscargo test --workspace --lockedmain: 476 passed, 7 ignored)The title was not run, so this says nothing about in-game effect. No game data is used or committed.
Re-verify in one go
To confirm that no component PR moved since this was built, compare each
Headabove withgh pr view <n> --repo Marvisak/VIctory --json headRefOid. If one differs, the branch needs a rebuild: merge the new head in the same order.If this lands
The component heads are in the history unchanged, so each PR's commits and authorship are kept and GitHub should mark them merged. Merging them one by one instead works too, with the exceptions noted above.
AI-assisted (Claude Code); no game data.
🤖 Generated with Claude Code