Compare commits

...

2 Commits

Author SHA1 Message Date
PavelBARABANOV
c0e19febd4 n64 2025-09-19 21:36:50 +03:00
PavelBARABANOV
c4ba002f64 LoadIdTokenCache stub 2025-09-19 21:18:03 +03:00
2 changed files with 20 additions and 5 deletions

View File

@@ -123,8 +123,9 @@ public:
/* 0x28 */ u64 context_size;
/* 0x30 */ u32 loop_start;
/* 0x34 */ u32 loop_end;
/* 0x38 */char unk38[0x2];
};
static_assert(sizeof(WaveBufferInternal) == 0x38,
static_assert(sizeof(WaveBufferInternal) == 0x40,
"VoiceInfo::WaveBufferInternal has the wrong size!");
struct BiquadFilterParameter {
@@ -164,9 +165,9 @@ public:
/* 0x15C */ Flags flags;
/* 0x15D */ char unk15D[0x1];
/* 0x15E */ SrcQuality src_quality;
/* 0x15F */ char unk15F[0x11];
/* 0x15F */ char unk15F[0x9];
};
static_assert(sizeof(InParameter) == 0x170, "VoiceInfo::InParameter has the wrong size!");
static_assert(sizeof(InParameter) == 0x188, "VoiceInfo::InParameter has the wrong size!");
struct OutStatus {
/* 0x00 */ u64 played_sample_count;

View File

@@ -647,7 +647,8 @@ public:
{0, &IManagerForApplication::CheckAvailability, "CheckAvailability"},
{1, &IManagerForApplication::GetAccountId, "GetAccountId"},
{2, &IManagerForApplication::EnsureIdTokenCacheAsync, "EnsureIdTokenCacheAsync"},
{3, &IManagerForApplication::LoadIdTokenCache, "LoadIdTokenCache"},
{3, &IManagerForApplication::LoadIdTokenCacheDeprecated, "LoadIdTokenCache"},
{4, &IManagerForApplication::LoadIdTokenCache, "LoadIdTokenCache"},
{130, &IManagerForApplication::GetNintendoAccountUserResourceCacheForApplication, "GetNintendoAccountUserResourceCacheForApplication"},
{136, &IManagerForApplication::GetNintendoAccountUserResourceCacheForApplication, "GetNintendoAccountUserResourceCache"}, // 19.0.0+
{150, nullptr, "CreateAuthorizationRequest"},
@@ -683,12 +684,25 @@ private:
rb.PushIpcInterface(ensure_token_id);
}
void LoadIdTokenCache(HLERequestContext& ctx) {
void LoadIdTokenCacheDeprecated(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
ensure_token_id->LoadIdTokenCache(ctx);
}
void LoadIdTokenCache(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");
std::vector<u8> token_data(0x100);
std::fill(token_data.begin(), token_data.end(), 0);
ctx.WriteBuffer(token_data, 0);
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(ResultSuccess);
rb.Push(static_cast<u32>(token_data.size()));
}
void GetNintendoAccountUserResourceCacheForApplication(HLERequestContext& ctx) {
LOG_WARNING(Service_ACC, "(STUBBED) called");