mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 05:51:19 +12:00
nn_act: Fix account endianness (#141)
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
a3b1af4e3d
commit
86e1a2227c
4 changed files with 16 additions and 9 deletions
|
@ -48,7 +48,7 @@ typedef struct
|
|||
char country[8];
|
||||
// Mii
|
||||
FFLData_t miiData;
|
||||
uint16be miiNickname[ACT_NICKNAME_LENGTH];
|
||||
uint16le miiNickname[ACT_NICKNAME_LENGTH];
|
||||
}actAccountData_t;
|
||||
|
||||
#define IOSU_ACT_ACCOUNT_MAX_COUNT (0xC)
|
||||
|
@ -103,6 +103,15 @@ void iosuAct_loadAccounts()
|
|||
const auto& first_acc = Account::GetAccount(persistent_id);
|
||||
FillAccountData(first_acc, online_enabled, counter);
|
||||
++counter;
|
||||
// enable multiple accounts for cafe functions (badly tested)
|
||||
//for (const auto& account : Account::GetAccounts())
|
||||
//{
|
||||
// if (first_acc.GetPersistentId() != account.GetPersistentId())
|
||||
// {
|
||||
// FillAccountData(account, online_enabled, counter);
|
||||
// ++counter;
|
||||
// }
|
||||
//}
|
||||
|
||||
cemuLog_force(L"IOSU_ACT: using account {} in first slot", first_acc.GetMiiName());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue