diff options
author | bunnei <bunneidev@gmail.com> | 2016-03-18 05:32:53 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2016-03-18 05:32:53 +0100 |
commit | 06b70d170e9418f1162a8a4c9bca92e600281e4d (patch) | |
tree | 194ba0422515c2cd5f4be244b423748fbc0bd1dd /src/core | |
parent | Merge pull request #1535 from JayFoxRox/fix-align (diff) | |
parent | Fix header (diff) | |
download | yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar.gz yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar.bz2 yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar.lz yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar.xz yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.tar.zst yuzu-06b70d170e9418f1162a8a4c9bca92e600281e4d.zip |
Diffstat (limited to 'src/core')
-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 632620a56..e6c1f3616 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) { LOG_DEBUG(Service_FS, "called priority=0x%X", priority); } +/** + * FS_User::GetArchiveResource service function. + * Inputs: + * 0 : 0x08490040 + * 1 : Media type + * Outputs: + * 1 : Result of function, 0 on success, otherwise error code + * 2 : Sector byte-size + * 3 : Cluster byte-size + * 4 : Partition capacity in clusters + * 5 : Available free space in clusters + */ +static void GetArchiveResource(Service::Interface* self) { + u32* cmd_buff = Kernel::GetCommandBuffer(); + + LOG_WARNING(Service_FS, "(STUBBED) called Media type=0x%08X", cmd_buff[1]); + + cmd_buff[1] = RESULT_SUCCESS.raw; + cmd_buff[2] = 512; + cmd_buff[3] = 16384; + cmd_buff[4] = 0x80000; // 8GiB capacity + cmd_buff[5] = 0x80000; // 8GiB free +} + const Interface::FunctionInfo FunctionTable[] = { {0x000100C6, nullptr, "Dummy1"}, {0x040100C4, nullptr, "Control"}, @@ -782,7 +806,7 @@ const Interface::FunctionInfo FunctionTable[] = { {0x08460102, nullptr, "GetLegacyRomHeader2"}, {0x08470180, nullptr, "FormatCtrCardUserSaveData"}, {0x08480042, nullptr, "GetSdmcCtrRootPath"}, - {0x08490040, nullptr, "GetArchiveResource"}, + {0x08490040, GetArchiveResource, "GetArchiveResource"}, {0x084A0002, nullptr, "ExportIntegrityVerificationSeed"}, {0x084B0002, nullptr, "ImportIntegrityVerificationSeed"}, {0x084C0242, FormatSaveData, "FormatSaveData"}, |