mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 22:11:18 +12:00
nn_act: Fix account endianness
Also adds some code for enabling multi-user support inside apps maybe, but it's probably hardcoded in more places since Cemu currently only shows the active account.
This commit is contained in:
parent
d3a7b3b5a6
commit
24301c0bc3
4 changed files with 16 additions and 9 deletions
|
@ -29,7 +29,7 @@ typedef struct
|
|||
/* +0x0C */ uint8 ukn0C[0xA];
|
||||
/* +0x16 */ uint8 ukn16[2];
|
||||
/* +0x18 */ uint16 ukn18;
|
||||
/* +0x1A */ uint16be miiName[10];
|
||||
/* +0x1A */ uint16le miiName[10];
|
||||
/* +0x2E */ uint16 ukn2E;
|
||||
/* +0x30 */ uint8 ukn30[96 - 0x30];
|
||||
}FFLData_t;
|
||||
|
@ -102,7 +102,7 @@ Account::Account(uint32 persistent_id, std::wstring_view mii_name)
|
|||
FFLData_t* fflData = (FFLData_t*)m_mii_data.data();
|
||||
const auto tmp_name = GetMiiName();
|
||||
memset(fflData->miiName, 0, sizeof(fflData->miiName));
|
||||
std::copy(tmp_name.cbegin(), tmp_name.cend(), fflData->miiName);
|
||||
std::copy(tmp_name.begin(), tmp_name.end(), fflData->miiName);
|
||||
|
||||
// calculate checksum
|
||||
uint32 crcCounter = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue