mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-07-09 17:14:47 -06:00
Remove inaccurate code for IsPasswordCacheEnabled, just stub it for now.
This commit is contained in:
parent
f768ea1311
commit
3aa4744a04
@ -9,7 +9,6 @@
|
||||
#include "Common/FileStream.h"
|
||||
#include "config/ActiveSettings.h"
|
||||
#include "util/helpers/helpers.h"
|
||||
#include "Cafe/Account/Account.h"
|
||||
|
||||
#define actPrepareRequest() \
|
||||
StackAllocator<iosuActCemuRequest_t> _buf_actRequest; \
|
||||
@ -146,12 +145,9 @@ namespace act
|
||||
|
||||
uint32 IsPasswordCacheEnabledEx(uint8 slot)
|
||||
{
|
||||
// this is currently a hack. It always returns true if just one other account has password cache enabled, regardless of slot.
|
||||
// In the future we should implement this properly and read the value from the individual account via IOSU
|
||||
const uint32 persistentId = GetPersistentIdEx(slot);
|
||||
if (persistentId == 0)
|
||||
return 0;
|
||||
return Account::GetAccount(persistentId).IsPasswordCacheEnabled() ? 1 : 0;
|
||||
// this is currently a hack.
|
||||
// todo: read the value from the individual account via IOSU
|
||||
return 1;
|
||||
}
|
||||
|
||||
uint32 IsPasswordCacheEnabled()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user