Skip to content

Commit 3aa4744

Browse files
committed
Remove inaccurate code for IsPasswordCacheEnabled, just stub it for now.
1 parent f768ea1 commit 3aa4744

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/Cafe/OS/libs/nn_act/nn_act.cpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "Common/FileStream.h"
1010
#include "config/ActiveSettings.h"
1111
#include "util/helpers/helpers.h"
12-
#include "Cafe/Account/Account.h"
1312

1413
#define actPrepareRequest() \
1514
StackAllocator<iosuActCemuRequest_t> _buf_actRequest; \
@@ -146,12 +145,9 @@ namespace act
146145

147146
uint32 IsPasswordCacheEnabledEx(uint8 slot)
148147
{
149-
// this is currently a hack. It always returns true if just one other account has password cache enabled, regardless of slot.
150-
// In the future we should implement this properly and read the value from the individual account via IOSU
151-
const uint32 persistentId = GetPersistentIdEx(slot);
152-
if (persistentId == 0)
153-
return 0;
154-
return Account::GetAccount(persistentId).IsPasswordCacheEnabled() ? 1 : 0;
148+
// this is currently a hack.
149+
// todo: read the value from the individual account via IOSU
150+
return 1;
155151
}
156152

157153
uint32 IsPasswordCacheEnabled()

0 commit comments

Comments
 (0)