Remove inaccurate code for IsPasswordCacheEnabled, just stub it for now.

This commit is contained in:
SIrHrVedel 2026-05-12 23:39:46 +02:00
parent f768ea1311
commit 3aa4744a04

View File

@ -9,7 +9,6 @@
#include "Common/FileStream.h" #include "Common/FileStream.h"
#include "config/ActiveSettings.h" #include "config/ActiveSettings.h"
#include "util/helpers/helpers.h" #include "util/helpers/helpers.h"
#include "Cafe/Account/Account.h"
#define actPrepareRequest() \ #define actPrepareRequest() \
StackAllocator<iosuActCemuRequest_t> _buf_actRequest; \ StackAllocator<iosuActCemuRequest_t> _buf_actRequest; \
@ -146,12 +145,9 @@ namespace act
uint32 IsPasswordCacheEnabledEx(uint8 slot) 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. // this is currently a hack.
// In the future we should implement this properly and read the value from the individual account via IOSU // todo: read the value from the individual account via IOSU
const uint32 persistentId = GetPersistentIdEx(slot); return 1;
if (persistentId == 0)
return 0;
return Account::GetAccount(persistentId).IsPasswordCacheEnabled() ? 1 : 0;
} }
uint32 IsPasswordCacheEnabled() uint32 IsPasswordCacheEnabled()