diff options
author | bunnei <bunneidev@gmail.com> | 2020-11-20 23:06:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-20 23:06:37 +0100 |
commit | c47c3d723f5b33c608ee6bf7d766b513d453a66f (patch) | |
tree | 8d2c5ff2c0dfcf77cab2145f7474dcfb114ff806 /src/core/hle/service/olsc/olsc.cpp | |
parent | Merge pull request #4941 from lioncash/config (diff) | |
parent | olsc: Move member initialization to after member functions. (diff) | |
download | yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar.gz yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar.bz2 yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar.lz yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar.xz yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.tar.zst yuzu-c47c3d723f5b33c608ee6bf7d766b513d453a66f.zip |
Diffstat (limited to 'src/core/hle/service/olsc/olsc.cpp')
-rw-r--r-- | src/core/hle/service/olsc/olsc.cpp | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/core/hle/service/olsc/olsc.cpp b/src/core/hle/service/olsc/olsc.cpp new file mode 100644 index 000000000..aad4ca706 --- /dev/null +++ b/src/core/hle/service/olsc/olsc.cpp @@ -0,0 +1,69 @@ +// Copyright 2020 yuzu emulator team +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/ipc_helpers.h" +#include "core/hle/kernel/hle_ipc.h" +#include "core/hle/service/olsc/olsc.h" +#include "core/hle/service/service.h" +#include "core/hle/service/sm/sm.h" + +namespace Service::OLSC { + +class OLSC final : public ServiceFramework<OLSC> { +public: + explicit OLSC() : ServiceFramework{"olsc:u"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, &OLSC::Initialize, "Initialize"}, + {10, nullptr, "VerifySaveDataBackupLicenseAsync"}, + {13, nullptr, "GetSaveDataBackupSetting"}, + {14, &OLSC::SetSaveDataBackupSettingEnabled, "SetSaveDataBackupSettingEnabled"}, + {15, nullptr, "SetCustomData"}, + {16, nullptr, "DeleteSaveDataBackupSetting"}, + {18, nullptr, "GetSaveDataBackupInfoCache"}, + {19, nullptr, "UpdateSaveDataBackupInfoCacheAsync"}, + {22, nullptr, "DeleteSaveDataBackupAsync"}, + {25, nullptr, "ListDownloadableSaveDataBackupInfoAsync"}, + {26, nullptr, "DownloadSaveDataBackupAsync"}, + {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); + } + +private: + void Initialize(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_OLSC, "(STUBBED) called"); + + initialized = true; + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } + + void SetSaveDataBackupSettingEnabled(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service_OLSC, "(STUBBED) called"); + + IPC::ResponseBuilder rb{ctx, 2}; + rb.Push(RESULT_SUCCESS); + } + + bool initialized{}; +}; + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared<OLSC>()->InstallAsService(service_manager); +} + +} // namespace Service::OLSC |