[XAM] Multiple Profile/Dashboard related changes.

- Replaced multiple unknown parameters with proper named ones
- Added code to support creation of profile from dashboard initial run
- Added flag to remove ODD from being enumerated in devices (probably valid but not sure)
This commit is contained in:
Gliniak
2025-05-06 23:10:18 +02:00
parent d18f80457d
commit dd112ed462
10 changed files with 98 additions and 15 deletions

View File

@@ -64,7 +64,8 @@ class ProfileManager {
bool CreateProfile(const std::string gamertag, bool autologin,
bool default_xuid = false);
// bool CreateProfile(const X_XAMACCOUNTINFO* account_info);
bool CreateProfile(const X_XAMACCOUNTINFO* account_info, uint64_t xuid);
bool DeleteProfile(const uint64_t xuid);
void ModifyGamertag(const uint64_t xuid, std::string gamertag);
@@ -105,7 +106,8 @@ class ProfileManager {
private:
void UpdateConfig(const uint64_t xuid, const uint8_t slot);
bool CreateAccount(const uint64_t xuid, const std::string gamertag);
bool UpdateAccount(const uint64_t xuid, X_XAMACCOUNTINFO* account);
bool CreateAccount(const uint64_t xuid, const X_XAMACCOUNTINFO* account);
bool UpdateAccount(const uint64_t xuid, const X_XAMACCOUNTINFO* account);
std::filesystem::path GetProfilePath(const uint64_t xuid) const;
std::filesystem::path GetProfilePath(const std::string xuid) const;