[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

@@ -103,9 +103,12 @@ class ProfileManager {
UserProfile* GetProfile(const uint8_t user_index) const;
uint8_t GetUserIndexAssignedToProfile(const uint64_t xuid) const;
std::map<uint64_t, X_XAMACCOUNTINFO>* GetProfiles() { return &accounts_; }
const std::map<uint64_t, X_XAMACCOUNTINFO>* GetAccounts() {
return &accounts_;
}
const X_XAMACCOUNTINFO* GetAccount(const uint64_t xuid);
uint32_t GetProfilesCount() const {
uint32_t GetAccountCount() const {
return static_cast<uint32_t>(accounts_.size());
}
bool IsAnyProfileSignedIn() const { return !logged_profiles_.empty(); }