summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar pippo29312016-03-12 11:01:12 -0800
committerGravatar pippo29312016-03-12 11:01:12 -0800
commit31abe54c99adbd6b140e2e66072c71b48e514f0f (patch)
treedc863aa5c26afe1fbf2bbde3cccf71bb3de5b471
parentMerge pull request #1266 from Subv/miiapplet (diff)
downloadyuzu-31abe54c99adbd6b140e2e66072c71b48e514f0f.tar.gz
yuzu-31abe54c99adbd6b140e2e66072c71b48e514f0f.tar.xz
yuzu-31abe54c99adbd6b140e2e66072c71b48e514f0f.zip
GetArchiveResource stub
Diffstat (limited to '')
-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 632620a56..527ba045d 100644
--- a/src/core/hle/service/fs/fs_user.cpp
+++ b/src/core/hle/service/fs/fs_user.cpp
@@ -707,6 +707,30 @@ static void GetPriority(Service::Interface* self) {
707 LOG_DEBUG(Service_FS, "called priority=0x%X", priority); 707 LOG_DEBUG(Service_FS, "called priority=0x%X", priority);
708} 708}
709 709
710/**
711 * FS_User::InitializeWithSdkVersion service function.
712 * Inputs:
713 * 0 : 0x08490040
714 * 1 : Media type
715 * Outputs:
716 * 1 : Result of function, 0 on success, otherwise error code
717 * 2 : Sector byte-size
718 * 3 : Cluster byte-size
719 * 4 : Partition capacity in clusters
720 * 5 : Available free space in clusters
721 */
722static void GetArchiveResource(Service::Interface* self) {
723 u32* cmd_buff = Kernel::GetCommandBuffer();
724
725 LOG_WARNING(Service_FS, "(STUBBED) called Media type=0x%08X", cmd_buff[1]);
726
727 cmd_buff[1] = RESULT_SUCCESS.raw;
728 cmd_buff[2] = 512;
729 cmd_buff[3] = 16384;
730 cmd_buff[4] = 0x80000; // 8GiB capacity
731 cmd_buff[5] = 0x80000; // 8GiB free
732}
733
710const Interface::FunctionInfo FunctionTable[] = { 734const Interface::FunctionInfo FunctionTable[] = {
711 {0x000100C6, nullptr, "Dummy1"}, 735 {0x000100C6, nullptr, "Dummy1"},
712 {0x040100C4, nullptr, "Control"}, 736 {0x040100C4, nullptr, "Control"},
@@ -782,7 +806,7 @@ const Interface::FunctionInfo FunctionTable[] = {
782 {0x08460102, nullptr, "GetLegacyRomHeader2"}, 806 {0x08460102, nullptr, "GetLegacyRomHeader2"},
783 {0x08470180, nullptr, "FormatCtrCardUserSaveData"}, 807 {0x08470180, nullptr, "FormatCtrCardUserSaveData"},
784 {0x08480042, nullptr, "GetSdmcCtrRootPath"}, 808 {0x08480042, nullptr, "GetSdmcCtrRootPath"},
785 {0x08490040, nullptr, "GetArchiveResource"}, 809 {0x08490040, GetArchiveResource, "GetArchiveResource"},
786 {0x084A0002, nullptr, "ExportIntegrityVerificationSeed"}, 810 {0x084A0002, nullptr, "ExportIntegrityVerificationSeed"},
787 {0x084B0002, nullptr, "ImportIntegrityVerificationSeed"}, 811 {0x084B0002, nullptr, "ImportIntegrityVerificationSeed"},
788 {0x084C0242, FormatSaveData, "FormatSaveData"}, 812 {0x084C0242, FormatSaveData, "FormatSaveData"},