mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 07:12:45 +00:00
Merge pull request #5892 from german77/backup
olsc: Stub GetSaveDataBackupSetting
This commit is contained in:
commit
1b730827dd
|
@ -17,7 +17,7 @@ public:
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, &OLSC::Initialize, "Initialize"},
|
{0, &OLSC::Initialize, "Initialize"},
|
||||||
{10, nullptr, "VerifySaveDataBackupLicenseAsync"},
|
{10, nullptr, "VerifySaveDataBackupLicenseAsync"},
|
||||||
{13, nullptr, "GetSaveDataBackupSetting"},
|
{13, &OLSC::GetSaveDataBackupSetting, "GetSaveDataBackupSetting"},
|
||||||
{14, &OLSC::SetSaveDataBackupSettingEnabled, "SetSaveDataBackupSettingEnabled"},
|
{14, &OLSC::SetSaveDataBackupSettingEnabled, "SetSaveDataBackupSettingEnabled"},
|
||||||
{15, nullptr, "SetCustomData"},
|
{15, nullptr, "SetCustomData"},
|
||||||
{16, nullptr, "DeleteSaveDataBackupSetting"},
|
{16, nullptr, "DeleteSaveDataBackupSetting"},
|
||||||
|
@ -52,6 +52,17 @@ private:
|
||||||
rb.Push(RESULT_SUCCESS);
|
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) {
|
void SetSaveDataBackupSettingEnabled(Kernel::HLERequestContext& ctx) {
|
||||||
LOG_WARNING(Service_OLSC, "(STUBBED) called");
|
LOG_WARNING(Service_OLSC, "(STUBBED) called");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue