summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-03-01 22:49:29 -0500
committerGravatar bunnei2015-03-01 22:49:29 -0500
commitd175f2b7f354f87184f2e213148be48973129e27 (patch)
tree06d96fb178573c05d7c2b069741fb42da3eb3373 /src
parentMerge pull request #618 from lioncash/ref (diff)
parentServices/FS: Stubbed CardSlotIsInserted to always return false (diff)
downloadyuzu-d175f2b7f354f87184f2e213148be48973129e27.tar.gz
yuzu-d175f2b7f354f87184f2e213148be48973129e27.tar.xz
yuzu-d175f2b7f354f87184f2e213148be48973129e27.zip
Merge pull request #623 from Subv/card
Services/FS: Stubbed CardSlotIsInserted to always return false
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/fs/fs_user.cpp26
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) {
487 cmd_buff[1] = FormatArchive(ArchiveIdCode::SaveData).raw; 487 cmd_buff[1] = FormatArchive(ArchiveIdCode::SaveData).raw;
488} 488}
489 489
490/**
491 * FS_User::CreateExtSaveData service function
492 * Inputs:
493 * 0: 0x08510242
494 * 1: High word of the saveid to create
495 * 2: Low word of the saveid to create
496 * Outputs:
497 * 1 : Result of function, 0 on success, otherwise error code
498 */
490static void CreateExtSaveData(Service::Interface* self) { 499static void CreateExtSaveData(Service::Interface* self) {
491 // TODO(Subv): Figure out the other parameters. 500 // TODO(Subv): Figure out the other parameters.
492 u32* cmd_buff = Kernel::GetCommandBuffer(); 501 u32* cmd_buff = Kernel::GetCommandBuffer();
@@ -496,6 +505,21 @@ static void CreateExtSaveData(Service::Interface* self) {
496 cmd_buff[1] = CreateExtSaveData(save_high, save_low).raw; 505 cmd_buff[1] = CreateExtSaveData(save_high, save_low).raw;
497} 506}
498 507
508/**
509 * FS_User::CardSlotIsInserted service function.
510 * Inputs:
511 * 0: 0x08210000
512 * Outputs:
513 * 1 : Result of function, 0 on success, otherwise error code
514 * 2 : Whether there is a game card inserted into the slot or not.
515 */
516static void CardSlotIsInserted(Service::Interface* self) {
517 u32* cmd_buff = Kernel::GetCommandBuffer();
518 cmd_buff[1] = RESULT_SUCCESS.raw;
519 cmd_buff[2] = 0;
520 LOG_WARNING(Service_FS, "(STUBBED) called");
521}
522
499const FSUserInterface::FunctionInfo FunctionTable[] = { 523const FSUserInterface::FunctionInfo FunctionTable[] = {
500 {0x000100C6, nullptr, "Dummy1"}, 524 {0x000100C6, nullptr, "Dummy1"},
501 {0x040100C4, nullptr, "Control"}, 525 {0x040100C4, nullptr, "Control"},
@@ -531,7 +555,7 @@ const FSUserInterface::FunctionInfo FunctionTable[] = {
531 {0x081E0042, nullptr, "GetNandLog"}, 555 {0x081E0042, nullptr, "GetNandLog"},
532 {0x081F0000, nullptr, "ClearSdmcLog"}, 556 {0x081F0000, nullptr, "ClearSdmcLog"},
533 {0x08200000, nullptr, "ClearNandLog"}, 557 {0x08200000, nullptr, "ClearNandLog"},
534 {0x08210000, nullptr, "CardSlotIsInserted"}, 558 {0x08210000, CardSlotIsInserted, "CardSlotIsInserted"},
535 {0x08220000, nullptr, "CardSlotPowerOn"}, 559 {0x08220000, nullptr, "CardSlotPowerOn"},
536 {0x08230000, nullptr, "CardSlotPowerOff"}, 560 {0x08230000, nullptr, "CardSlotPowerOff"},
537 {0x08240000, nullptr, "CardSlotGetCardIFPowerStatus"}, 561 {0x08240000, nullptr, "CardSlotGetCardIFPowerStatus"},