summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorgerman <german@thesoftwareartisans.com>2021-02-08 05:09:40 +0100
committergerman <german@thesoftwareartisans.com>2021-02-08 05:32:13 +0100
commit3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea (patch)
tree6783a886e1aae9be07ba4a5fb129b05863eb01b5 /src/core
parentMerge pull request #5872 from lioncash/svc-error (diff)
downloadyuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar.gz
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar.bz2
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar.lz
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar.xz
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.tar.zst
yuzu-3f9eb5697277b3f5cd61c683a658b5f5ec8d0eea.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hle/service/olsc/olsc.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/core/hle/service/olsc/olsc.cpp b/src/core/hle/service/olsc/olsc.cpp
index 4440135ed..e2ac71fa1 100644
--- a/src/core/hle/service/olsc/olsc.cpp
+++ b/src/core/hle/service/olsc/olsc.cpp
@@ -17,7 +17,7 @@ public:
static const FunctionInfo functions[] = {
{0, &OLSC::Initialize, "Initialize"},
{10, nullptr, "VerifySaveDataBackupLicenseAsync"},
- {13, nullptr, "GetSaveDataBackupSetting"},
+ {13, &OLSC::GetSaveDataBackupSetting, "GetSaveDataBackupSetting"},
{14, &OLSC::SetSaveDataBackupSettingEnabled, "SetSaveDataBackupSettingEnabled"},
{15, nullptr, "SetCustomData"},
{16, nullptr, "DeleteSaveDataBackupSetting"},
@@ -52,6 +52,17 @@ private:
rb.Push(RESULT_SUCCESS);
}
+ void GetSaveDataBackupSetting(Kernel::HLERequestContext& ctx) {
+ LOG_WARNING(Service_OLSC, "(STUBBED) called");
+
+ // backup_setting is set to 0 since real value is unknown
+ constexpr u64 backup_setting = 0;
+
+ IPC::ResponseBuilder rb{ctx, 4};
+ rb.Push(RESULT_SUCCESS);
+ rb.Push(backup_setting);
+ }
+
void SetSaveDataBackupSettingEnabled(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service_OLSC, "(STUBBED) called");