diff options
author | Liam <byteslice@airmail.cc> | 2024-02-21 22:13:01 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-21 22:13:01 +0100 |
commit | 6334616b44a0b9fc5d601b6deb13fc2c861f253c (patch) | |
tree | 0e1084c9372979ab3c5f3d351c21db205dff962e /src/core/hle/service/olsc/olsc_service_for_application.cpp | |
parent | Merge pull request #13105 from t895/connection-fix (diff) | |
download | yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar.gz yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar.bz2 yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar.lz yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar.xz yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.tar.zst yuzu-6334616b44a0b9fc5d601b6deb13fc2c861f253c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/olsc/olsc_service_for_application.cpp | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/src/core/hle/service/olsc/olsc_service_for_application.cpp b/src/core/hle/service/olsc/olsc_service_for_application.cpp new file mode 100644 index 000000000..ae3ed1e3f --- /dev/null +++ b/src/core/hle/service/olsc/olsc_service_for_application.cpp @@ -0,0 +1,70 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-2.0-or-later + +#include "core/hle/service/ipc_helpers.h" +#include "core/hle/service/olsc/olsc_service_for_application.h" + +namespace Service::OLSC { + +IOlscServiceForApplication::IOlscServiceForApplication(Core::System& system_) + : ServiceFramework{system_, "olsc:u"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, &IOlscServiceForApplication::Initialize, "Initialize"}, + {10, nullptr, "VerifySaveDataBackupLicenseAsync"}, + {13, &IOlscServiceForApplication::GetSaveDataBackupSetting, "GetSaveDataBackupSetting"}, + {14, &IOlscServiceForApplication::SetSaveDataBackupSettingEnabled, "SetSaveDataBackupSettingEnabled"}, + {15, nullptr, "SetCustomData"}, + {16, nullptr, "DeleteSaveDataBackupSetting"}, + {18, nullptr, "GetSaveDataBackupInfoCache"}, + {19, nullptr, "UpdateSaveDataBackupInfoCacheAsync"}, + {22, nullptr, "DeleteSaveDataBackupAsync"}, + {25, nullptr, "ListDownloadableSaveDataBackupInfoAsync"}, + {26, nullptr, "DownloadSaveDataBackupAsync"}, + {27, nullptr, "UploadSaveDataBackupAsync"}, + {9010, nullptr, "VerifySaveDataBackupLicenseAsyncForDebug"}, + {9013, nullptr, "GetSaveDataBackupSettingForDebug"}, + {9014, nullptr, "SetSaveDataBackupSettingEnabledForDebug"}, + {9015, nullptr, "SetCustomDataForDebug"}, + {9016, nullptr, "DeleteSaveDataBackupSettingForDebug"}, + {9018, nullptr, "GetSaveDataBackupInfoCacheForDebug"}, + {9019, nullptr, "UpdateSaveDataBackupInfoCacheAsyncForDebug"}, + {9022, nullptr, "DeleteSaveDataBackupAsyncForDebug"}, + {9025, nullptr, "ListDownloadableSaveDataBackupInfoAsyncForDebug"}, + {9026, nullptr, "DownloadSaveDataBackupAsyncForDebug"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +IOlscServiceForApplication::~IOlscServiceForApplication() = default; + +void IOlscServiceForApplication::Initialize(HLERequestContext& ctx) { + LOG_WARNING(Service_OLSC, "(STUBBED) called"); + + initialized = true; + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + +void IOlscServiceForApplication::GetSaveDataBackupSetting(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(ResultSuccess); + rb.Push(backup_setting); +} + +void IOlscServiceForApplication::SetSaveDataBackupSettingEnabled(HLERequestContext& ctx) { + LOG_WARNING(Service_OLSC, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(ResultSuccess); +} + +} // namespace Service::OLSC |