summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/fs/fs_user.cpp19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp
index 5e9b85cc7..957185f8f 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -426,6 +426,23 @@ static void IsSdmcDetected(Service::Interface* self) {
426} 426}
427 427
428/** 428/**
429 * FS_User::IsSdmcWriteable service function
430 * Outputs:
431 * 0 : Command header 0x08180000
432 * 1 : Result of function, 0 on success, otherwise error code
433 * 2 : Whether the Sdmc is currently writeable
434 */
435static void IsSdmcWriteable(Service::Interface* self) {
436 u32* cmd_buff = Kernel::GetCommandBuffer();
437
438 cmd_buff[1] = RESULT_SUCCESS.raw;
439 // If the SD isn't enabled, it can't be writeable...else, stubbed true
440 cmd_buff[2] = Settings::values.use_virtual_sd ? 1 : 0;
441
442 LOG_DEBUG(Service_FS, " (STUBBED)");
443}
444
445/**
429 * FS_User::FormatSaveData service function, 446 * FS_User::FormatSaveData service function,
430 * formats the SaveData specified by the input path. 447 * formats the SaveData specified by the input path.
431 * Inputs: 448 * Inputs:
@@ -510,7 +527,7 @@ const FSUserInterface::FunctionInfo FunctionTable[] = {
510 {0x08150000, nullptr, "GetNandArchiveResource"}, 527 {0x08150000, nullptr, "GetNandArchiveResource"},
511 {0x08160000, nullptr, "GetSdmcFatfsErro"}, 528 {0x08160000, nullptr, "GetSdmcFatfsErro"},
512 {0x08170000, IsSdmcDetected, "IsSdmcDetected"}, 529 {0x08170000, IsSdmcDetected, "IsSdmcDetected"},
513 {0x08180000, nullptr, "IsSdmcWritable"}, 530 {0x08180000, IsSdmcWriteable, "IsSdmcWritable"},
514 {0x08190042, nullptr, "GetSdmcCid"}, 531 {0x08190042, nullptr, "GetSdmcCid"},
515 {0x081A0042, nullptr, "GetNandCid"}, 532 {0x081A0042, nullptr, "GetNandCid"},
516 {0x081B0000, nullptr, "GetSdmcSpeedInfo"}, 533 {0x081B0000, nullptr, "GetSdmcSpeedInfo"},