diff options
| author | 2015-03-01 22:49:29 -0500 | |
|---|---|---|
| committer | 2015-03-01 22:49:29 -0500 | |
| commit | d175f2b7f354f87184f2e213148be48973129e27 (patch) | |
| tree | 06d96fb178573c05d7c2b069741fb42da3eb3373 /src | |
| parent | Merge pull request #618 from lioncash/ref (diff) | |
| parent | Services/FS: Stubbed CardSlotIsInserted to always return false (diff) | |
| download | yuzu-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.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) { | |||
| 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 | */ | ||
| 490 | static void CreateExtSaveData(Service::Interface* self) { | 499 | static 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 | */ | ||
| 516 | static 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 | |||
| 499 | const FSUserInterface::FunctionInfo FunctionTable[] = { | 523 | const 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"}, |