[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:
@@ -466,6 +466,14 @@ bool ProfileManager::CreateProfile(const std::string gamertag, bool autologin,
|
||||
return is_account_created;
|
||||
}
|
||||
|
||||
const X_XAMACCOUNTINFO* ProfileManager::GetAccount(const uint64_t xuid) {
|
||||
if (!accounts_.count(xuid)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return &accounts_[xuid];
|
||||
}
|
||||
|
||||
bool ProfileManager::CreateAccount(const uint64_t xuid,
|
||||
const std::string gamertag) {
|
||||
X_XAMACCOUNTINFO account = {};
|
||||
|
||||
Reference in New Issue
Block a user