diff options
author | bunnei <bunneidev@gmail.com> | 2021-02-09 02:48:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-09 02:48:52 +0100 |
commit | 1b730827ddf7442aadbc2a481c439b90d70ca19e (patch) | |
tree | b7886cb48d38946f11a3bbea62dac7f684b5462e | |
parent | Merge pull request #5868 from german77/HandheldFix (diff) | |
parent | olsc: Stub GetSaveDataBackupSetting (diff) | |
download | yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar.gz yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar.bz2 yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar.lz yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar.xz yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.tar.zst yuzu-1b730827ddf7442aadbc2a481c439b90d70ca19e.zip |
-rw-r--r-- | src/core/hle/service/olsc/olsc.cpp | 13 |
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"); |