Repository navigation
MicrosoftGame.config: attribute values with their character references replaced - #52
Merged
Merged
Conversation
…s replaced xml_attrs returned values as written, so a display name such as "Ratchet & Clank" showed in the XCL window's title with the &, and an Executable Name with an escaped character named a file that does not exist. The five named references and numeric ones are now replaced; anything else stays as written.
Collaborator
|
Thanks, merged, and good catch on my 9a15c53! The decoder looks right to me:
The values it touches are the All tests pass with the MSVC toolchain on Windows: 343 lib tests with your new one, plus the e2e test title. My four titles' configs have no |
vincentes
added a commit
to vincentes/xcl-wasm
that referenced
this pull request
Nov 24, 2026
In the software D3D12.X device: - The console's frame clock (device xcl-dev#78–xcl-dev#81): SetFrameIntervalX, ScheduleFrameEventX, WaitFrameEventX (the origin hands out the frame's token; S_FALSE at the timeout) and GetFrameStatisticsX, on guest time. The ancillary handles of an event are not signalled. - PresentX (queue xcl-dev#30) goes through the queue like everything else; when the queue gets to it the frame is flipped for the statistics and the back buffer's memory is kept as `d3d.frame` (width, height, format, pixels) for the host to show. Textures are linear in this device: the console's tiling is not modelled. - ClearRenderTargetView (list xcl-dev#52) fills a target of 8 bits a channel; CreateRenderTargetView remembers which resource a descriptor shows. - The device answers QueryInterface for IDXGIDevice / 1 / 2 with an object of that layout; its adapter has the device's LUID and no output. Measured on macOS (aarch64): the test title's "frame clock + PresentX of the title's back buffer" passes, 41 checks in all. `cargo test -p xcl-guest`: 47 passed, 0 failed, run on the staged tree in a separate copy: the working tree does not build at the moment (another agent's half-written crates/xcl/src/hle/export_names.rs). Co-Authored-By: Claude Fable 5.2 <[email protected]>
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.
xml_attrs(launcher.rs) returns attribute values as they are written inMicrosoftGame.config. A&in an attribute has to be written&, so since 9a15c53 a game called "Ratchet & Clank" getsXCL – Ratchet & Clankas its window title. The same reader gives theExecutable Namevalues, and an escaped character there names a file that doesn't exist.Values now go through a small
xml_unescape: the five named references (&<>"') and numeric ones (','). Anything that isn't a valid reference (a bare&, ,&#xZZ;) stays as written.Validation
attribute_values_have_their_character_references_replaced, and a&case indisplay_name_is_the_shell_name_unless_it_is_a_resource. Both fail onmainand pass with the change.cargo test -p xcl --lib: 340 passed, 0 failed, on Windows GNU under Wine.