[XAM] Removed gamertag endianness swap

- Fixed issue with XamShowDeviceSelectorUI not being triggered in specific cases
- Partially fixed XamProfileCreate - Now it should create profile correctly
- Fixed XamProfileGetCreationStatus crash
This commit is contained in:
Gliniak
2025-10-29 20:42:17 +01:00
committed by Radosław Gliński
parent eed4242059
commit edd48cd83d
6 changed files with 44 additions and 49 deletions

View File

@@ -620,10 +620,10 @@ void GamercardUI::SaveAccountData() {
account.SetSubscriptionTier(gamercardValues_.account_subscription_tier);
account.ToggleLiveFlag(gamercardValues_.is_live_enabled);
std::u16string gamertag =
const std::u16string gamertag =
xe::to_utf16(std::string(gamercardValues_.gamertag));
string_util::copy_truncating(account.gamertag, gamertag,
std::size(account.gamertag));
string_util::copy_and_swap_truncating(account.gamertag, gamertag,
std::size(account.gamertag));
if (std::memcmp(&account, &account_original, sizeof(X_XAMACCOUNTINFO)) != 0) {
if (!is_signed_in_) {