diff options
author | Subv <subv2112@gmail.com> | 2015-03-01 05:00:46 +0100 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2015-03-01 05:00:46 +0100 |
commit | db1a5d4222c4ad3d1b632516bda765043674a9af (patch) | |
tree | 8ccf809d4e97917d35d064a6a8e3e1b5aa58f24a /src/core/hle | |
parent | Merge pull request #599 from Subv/morton (diff) | |
download | yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar.gz yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar.bz2 yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar.lz yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar.xz yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.tar.zst yuzu-db1a5d4222c4ad3d1b632516bda765043674a9af.zip |
Diffstat (limited to 'src/core/hle')
-rw-r--r-- | src/core/hle/service/fs/fs_user.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index 71ee4ff55..2c1302208 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp @@ -487,6 +487,15 @@ static void FormatThisUserSaveData(Service::Interface* self) { cmd_buff[1] = FormatArchive(ArchiveIdCode::SaveData).raw; } +/** + * FS_User::CreateExtSaveData service function + * Inputs: + * 0: 0x08510242 + * 1: High word of the saveid to create + * 2: Low word of the saveid to create + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + */ static void CreateExtSaveData(Service::Interface* self) { // TODO(Subv): Figure out the other parameters. u32* cmd_buff = Kernel::GetCommandBuffer(); @@ -496,6 +505,21 @@ static void CreateExtSaveData(Service::Interface* self) { cmd_buff[1] = CreateExtSaveData(save_high, save_low).raw; } +/** + * FS_User::CardSlotIsInserted service function. + * Inputs: + * 0: 0x08210000 + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + * 2 : Whether there is a game card inserted into the slot or not. + */ +static void CardSlotIsInserted(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 0; + LOG_WARNING(Service_FS, "(STUBBED) called"); +} + const FSUserInterface::FunctionInfo FunctionTable[] = { {0x000100C6, nullptr, "Dummy1"}, {0x040100C4, nullptr, "Control"}, @@ -531,7 +555,7 @@ const FSUserInterface::FunctionInfo FunctionTable[] = { {0x081E0042, nullptr, "GetNandLog"}, {0x081F0000, nullptr, "ClearSdmcLog"}, {0x08200000, nullptr, "ClearNandLog"}, - {0x08210000, nullptr, "CardSlotIsInserted"}, + {0x08210000, CardSlotIsInserted, "CardSlotIsInserted"}, {0x08220000, nullptr, "CardSlotPowerOn"}, {0x08230000, nullptr, "CardSlotPowerOff"}, {0x08240000, nullptr, "CardSlotGetCardIFPowerStatus"}, |