[XAM] ProfileManager: Renamed GetProfiles to GetAccounts

This is to prevent confusion between signed-in accounts (aka. Profiles) and all entries (Accounts)

Also added GetAccount to get specific instead of all of them when not needed
This commit is contained in:
Gliniak
2024-11-26 20:28:01 +01:00
parent b17faf84f2
commit 2b49fc2ddc
7 changed files with 33 additions and 23 deletions

View File

@@ -137,10 +137,10 @@ dword_result_t XamProfileCreateEnumerator_entry(dword_t device_id,
return result;
}
const auto& profiles =
kernel_state()->xam_state()->profile_manager()->GetProfiles();
const auto& accounts =
kernel_state()->xam_state()->profile_manager()->GetAccounts();
for (const auto& [xuid, account] : *profiles) {
for (const auto& [xuid, account] : *accounts) {
X_PROFILEENUMRESULT* profile = e->AppendItem();
profile->xuid_offline = xuid;