citra-emu
/
citra-canary
Archived
1
0
Fork 0

HLE/FS: Stubbed GetNumSeeds to always return 0 seeds.

We don't yet implement the SEEDDB store.
This number is supposed to be modified by the AddSeed function (0x087A0180) but there's too little info about it on 3dbrew.
This commit is contained in:
Subv 2017-12-09 11:59:58 -05:00
parent c72262d7e3
commit 0ac82af50f
1 changed files with 21 additions and 0 deletions

View File

@ -968,6 +968,26 @@ static void GetProgramLaunchInfo(Service::Interface* self) {
rb.Push<u32>(0); rb.Push<u32>(0);
} }
/**
* FS_User::GetNumSeeds service function.
* Inputs:
* 0 : 0x087D0000
* Outputs:
* 0 : 0x087D0080
* 1 : Result of function, 0 on success, otherwise error code
* 2 : Number of seeds in the SEEDDB
*/
static void GetNumSeeds(Service::Interface* self) {
IPC::RequestParser rp(Kernel::GetCommandBuffer(), 0x87D, 0, 0);
LOG_WARNING(Service_FS, "(STUBBED) called");
IPC::RequestBuilder rb = rp.MakeBuilder(2, 0);
rb.Push(RESULT_SUCCESS);
rb.Push<u32>(0);
}
const Interface::FunctionInfo FunctionTable[] = { const Interface::FunctionInfo FunctionTable[] = {
{0x000100C6, nullptr, "Dummy1"}, {0x000100C6, nullptr, "Dummy1"},
{0x040100C4, nullptr, "Control"}, {0x040100C4, nullptr, "Control"},
@ -1078,6 +1098,7 @@ const Interface::FunctionInfo FunctionTable[] = {
{0x08690000, nullptr, "GetNandEraseCount"}, {0x08690000, nullptr, "GetNandEraseCount"},
{0x086A0082, nullptr, "ReadNandReport"}, {0x086A0082, nullptr, "ReadNandReport"},
{0x087A0180, nullptr, "AddSeed"}, {0x087A0180, nullptr, "AddSeed"},
{0x087D0000, GetNumSeeds, "GetNumSeeds"},
{0x088600C0, nullptr, "CheckUpdatedDat"}, {0x088600C0, nullptr, "CheckUpdatedDat"},
}; };