Repository navigation
HLE: implement XPackage monitor update, user locale, and mount path size - #2137
fuzeofficlal wants to merge 1 commit into
Conversation
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (940d32f, Windows 11 x64, Rust 1.98.1 MSVC):
cargo test -p victory-hle --lib xpackage::— 3 passed, 0 failed (includingmonitor_update_user_locale_and_mount_path_size)cargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— ok (183 files ok)
Clean implementation of XPackage monitor update, user locale, and mount path size with unit tests. Looks good.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
XPackage monitor update, user locale, mouse — HLE API surface expansion; locale handling is a common conformance gap, good addition.
|
Automated triage for the maintainers. Needs work. The new head Two things still block this:
On your reply: the doc-comment fix is done. The locale change swaps one unverified value for another and does not yet answer the evidence question. If the locale slot is dropped or backed as above, and you show the title calls these slots, this could become a merge candidate. Generated by Claude Code |
Wire the three unimplemented XPackage vtable slots around the completed single-package installation model: - 0x40 (XPackageUpdateInstallationMonitor): return false instead of falling into missing::<8>, whose E_NOTIMPL (0x80004001) sets AL = 1 and looked like true on a bool-returning ABI. - 0x58 (XPackageGetUserLocale): query the host user locale via Win32 GetUserDefaultLocaleName (LOCALE_NAME_MAX_LENGTH = 85, falling back to en-US if empty or non-Windows), reject null buffers with E_INVALIDARG, and write UTF-8 + NUL via put_string (returning E_NOT_SUFFICIENT_BUFFER when too small). - 0xc0 (XPackageGetMountPathSize): restore mount_path's doc comment and add a dedicated doc comment for mount_path_size; zero any non-null size pointer and return E_INVALIDARG consistently with mount_path (0xc8), since no content package is mounted.
a027f64 to
e4b9e2e
Compare
|
Updated in
|
Summary
XPackagevtable slots0x40,0x58, and0xc0incrates/victory-hle/src/modules/xpackage.rsto matchmain's completed single-package installation model:0x40(XPackageUpdateInstallationMonitor): Returnfalse(no installation progress change on a completed installation) instead of falling intomissing::<8>, whoseE_NOTIMPL(0x8000_4001) setsAL = 1(true) on abool-returning x64 ABI.0x58(XPackageGetUserLocale): Query the host user's default BCP-47 locale via Win32GetUserDefaultLocaleName(LOCALE_NAME_MAX_LENGTH=85, falling back to"en-US"only if empty or non-Windows), reject null buffers withE_INVALIDARG, and write UTF-8 + NUL viaput_string(E_NOT_SUFFICIENT_BUFFERwhensizeis too small), per Microsoft Learn'sXPackageGetUserLocalespecification.0xc0(XPackageGetMountPathSize): Zero non-nullsizeand returnE_INVALIDARGconsistently withmount_path(0xc8), since no content package mount handles exist.Verification
modules::xpackage::tests::monitor_update_user_locale_and_mount_path_size: verifies0x40returnsfalse,0x58matches the host'sGetUserDefaultLocaleNameand enforces buffer bounds, and0xc0agrees with0xc8.cargo test -p victory-hle --locked,cargo clippy -p victory-hle --tests --locked -- -D warnings, andcargo xtask policy: passed.