From 3aa4744a04adca27f5e41640f4a161e9082eabb9 Mon Sep 17 00:00:00 2001 From: SIrHrVedel <38987957+SirHrVedel@users.noreply.github.com> Date: Tue, 12 May 2026 23:39:46 +0200 Subject: [PATCH] Remove inaccurate code for IsPasswordCacheEnabled, just stub it for now. --- src/Cafe/OS/libs/nn_act/nn_act.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Cafe/OS/libs/nn_act/nn_act.cpp b/src/Cafe/OS/libs/nn_act/nn_act.cpp index 8ee74600..167ff969 100644 --- a/src/Cafe/OS/libs/nn_act/nn_act.cpp +++ b/src/Cafe/OS/libs/nn_act/nn_act.cpp @@ -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 _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()