HLE: report the single supported offline user #398
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!398
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-398"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ToxicmaggotRP on GitHub · 2026-11-24 02:56 UTC · original
ToxicmaggotRP:hle/xuser-max-users→main· +23 −3 · 1 files · 1 commits · openTitle:
HLE: implement the maximum supported offline users query
Summary
0x30.1, matching VIctory's current single-offline-user HLE implementation.puthelper to validate and write the output parameter.Context
The current XUser implementation exposes one offline local user, but the maximum-users method was still returning
E_NOTIMPL.This implements that missing part of the current single-user HLE model.
Related discussion: #348. This change does not claim to resolve the initialization crash reported there; that still requires a reproduction with the modified build.
Tests
maximum_users_reports_the_single_offline_user.S_OKand a maximum user count of1.E_INVALIDARGfor a null output pointer.cargo testhas not yet been run on this branch.AI ASSISTED (CHATGPT)
@jeremygold02 on GitHub · 2026-11-24 04:29 UTC · original
Thanks @ToxicmaggotRP for making the offline-user limit explicit. I tested head
1d6f71e78730821f89f10c65fba14713d62b05fdwith:Result: 2 passed, 0 failed (85 filtered out). The tests cover the reported maximum of one offline user and startup adding that user and returning its ID. They validate the HLE object behavior, not a title’s full sign-in flow.
@Marvisak on GitHub · 2026-11-25 00:30 UTC · original
Automated triage for the maintainers.
Needs work. This fills xuser vtable slot 0x30 (
crates/victory-hle/src/modules/xuser.rs) withget_max_users(This, *mut u32)returning 1. The open question is the signature: several other open PRs fill the same slot as(This, Handle, *mut u32)(#648, #623, #1330, #1368, #1521), and #648 says the title calls it during account init. If the real method takes a user handle, this version writes the 1 through the handle argument; if not, those PRs write through an undefined register. Either way a wrong guess corrupts memory rather than just returning a wrong value. Please add evidence for the argument list (the title's call site and which registers it sets, or public documentation of the method) and say whether the title really calls it, since the comment in main says no title seen does. With the signature confirmed this is small and fine; a maintainer should then pick one of the duplicates.CI: no check runs on the head commit.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.