diff options
| author | 2024-02-21 18:42:06 -0500 | |
|---|---|---|
| committer | 2024-02-21 19:05:19 -0500 | |
| commit | 5f3c03d6a8f9bc83e78025edfd4b20b2f19cb04f (patch) | |
| tree | f411831d930b153e2bea6a553b8a24dd3d649f1a /src/core/hle/service | |
| parent | olsc: rewrite ITransferTaskListController (diff) | |
| download | yuzu-5f3c03d6a8f9bc83e78025edfd4b20b2f19cb04f.tar.gz yuzu-5f3c03d6a8f9bc83e78025edfd4b20b2f19cb04f.tar.xz yuzu-5f3c03d6a8f9bc83e78025edfd4b20b2f19cb04f.zip | |
olsc: add IDaemonController
Diffstat (limited to 'src/core/hle/service')
| -rw-r--r-- | src/core/hle/service/olsc/daemon_controller.cpp | 40 | ||||
| -rw-r--r-- | src/core/hle/service/olsc/daemon_controller.h | 20 |
2 files changed, 60 insertions, 0 deletions
diff --git a/src/core/hle/service/olsc/daemon_controller.cpp b/src/core/hle/service/olsc/daemon_controller.cpp new file mode 100644 index 000000000..7823780a8 --- /dev/null +++ b/src/core/hle/service/olsc/daemon_controller.cpp | |||
| @@ -0,0 +1,40 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "core/hle/service/cmif_serialization.h" | ||
| 5 | #include "core/hle/service/olsc/daemon_controller.h" | ||
| 6 | |||
| 7 | namespace Service::OLSC { | ||
| 8 | |||
| 9 | IDaemonController::IDaemonController(Core::System& system_) | ||
| 10 | : ServiceFramework{system_, "IDaemonController"} { | ||
| 11 | // clang-format off | ||
| 12 | static const FunctionInfo functions[] = { | ||
| 13 | {0, D<&IDaemonController::GetAutoTransferEnabledForAccountAndApplication>, "GetAutoTransferEnabledForAccountAndApplication"}, | ||
| 14 | {1, nullptr, "SetAutoTransferEnabledForAccountAndApplication"}, | ||
| 15 | {2, nullptr, "GetGlobalUploadEnabledForAccount"}, | ||
| 16 | {3, nullptr, "SetGlobalUploadEnabledForAccount"}, | ||
| 17 | {4, nullptr, "TouchAccount"}, | ||
| 18 | {5, nullptr, "GetGlobalDownloadEnabledForAccount"}, | ||
| 19 | {6, nullptr, "SetGlobalDownloadEnabledForAccount"}, | ||
| 20 | {10, nullptr, "GetForbiddenSaveDataIndication"}, | ||
| 21 | {11, nullptr, "GetStopperObject"}, | ||
| 22 | {12, nullptr, "GetState"}, | ||
| 23 | }; | ||
| 24 | // clang-format on | ||
| 25 | |||
| 26 | RegisterHandlers(functions); | ||
| 27 | } | ||
| 28 | |||
| 29 | IDaemonController::~IDaemonController() = default; | ||
| 30 | |||
| 31 | Result IDaemonController::GetAutoTransferEnabledForAccountAndApplication(Out<bool> out_is_enabled, | ||
| 32 | Common::UUID user_id, | ||
| 33 | u64 application_id) { | ||
| 34 | LOG_WARNING(Service_OLSC, "(STUBBED) called, user_id={} application_id={:016X}", | ||
| 35 | user_id.FormattedString(), application_id); | ||
| 36 | *out_is_enabled = false; | ||
| 37 | R_SUCCEED(); | ||
| 38 | } | ||
| 39 | |||
| 40 | } // namespace Service::OLSC | ||
diff --git a/src/core/hle/service/olsc/daemon_controller.h b/src/core/hle/service/olsc/daemon_controller.h new file mode 100644 index 000000000..dfad7f52a --- /dev/null +++ b/src/core/hle/service/olsc/daemon_controller.h | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | // SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project | ||
| 2 | // SPDX-License-Identifier: GPL-2.0-or-later | ||
| 3 | |||
| 4 | #include "common/uuid.h" | ||
| 5 | #include "core/hle/service/cmif_types.h" | ||
| 6 | #include "core/hle/service/service.h" | ||
| 7 | |||
| 8 | namespace Service::OLSC { | ||
| 9 | |||
| 10 | class IDaemonController final : public ServiceFramework<IDaemonController> { | ||
| 11 | public: | ||
| 12 | explicit IDaemonController(Core::System& system_); | ||
| 13 | ~IDaemonController() override; | ||
| 14 | |||
| 15 | private: | ||
| 16 | Result GetAutoTransferEnabledForAccountAndApplication(Out<bool> out_is_enabled, | ||
| 17 | Common::UUID user_id, u64 application_id); | ||
| 18 | }; | ||
| 19 | |||
| 20 | } // namespace Service::OLSC | ||