summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Liam2024-02-17 11:40:54 -0500
committerGravatar Liam2024-02-18 10:32:21 -0500
commit12926eb5dbe6916fc3721ee4c508629d658af923 (patch)
tree92369334bafeca601c08eb5bc3718faf818840d8 /src/core
parentns: move IAccountProxyInterface (diff)
downloadyuzu-12926eb5dbe6916fc3721ee4c508629d658af923.tar.gz
yuzu-12926eb5dbe6916fc3721ee4c508629d658af923.tar.xz
yuzu-12926eb5dbe6916fc3721ee4c508629d658af923.zip
ns: move IApplicationVersionInterface
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt2
-rw-r--r--src/core/hle/service/ns/application_version_interface.cpp33
-rw-r--r--src/core/hle/service/ns/application_version_interface.h16
-rw-r--r--src/core/hle/service/ns/ns.cpp26
-rw-r--r--src/core/hle/service/ns/ns.h6
5 files changed, 52 insertions, 31 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 351446eb0..1f2c8183e 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -741,6 +741,8 @@ add_library(core STATIC
741 hle/service/npns/npns.h 741 hle/service/npns/npns.h
742 hle/service/ns/account_proxy_interface.cpp 742 hle/service/ns/account_proxy_interface.cpp
743 hle/service/ns/account_proxy_interface.h 743 hle/service/ns/account_proxy_interface.h
744 hle/service/ns/application_version_interface.cpp
745 hle/service/ns/application_version_interface.h
744 hle/service/ns/language.cpp 746 hle/service/ns/language.cpp
745 hle/service/ns/language.h 747 hle/service/ns/language.h
746 hle/service/ns/ns_results.h 748 hle/service/ns/ns_results.h
diff --git a/src/core/hle/service/ns/application_version_interface.cpp b/src/core/hle/service/ns/application_version_interface.cpp
new file mode 100644
index 000000000..b89e127db
--- /dev/null
+++ b/src/core/hle/service/ns/application_version_interface.cpp
@@ -0,0 +1,33 @@
1// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#include "core/hle/service/ns/application_version_interface.h"
5
6namespace Service::NS {
7
8IApplicationVersionInterface::IApplicationVersionInterface(Core::System& system_)
9 : ServiceFramework{system_, "IApplicationVersionInterface"} {
10 // clang-format off
11 static const FunctionInfo functions[] = {
12 {0, nullptr, "GetLaunchRequiredVersion"},
13 {1, nullptr, "UpgradeLaunchRequiredVersion"},
14 {35, nullptr, "UpdateVersionList"},
15 {36, nullptr, "PushLaunchVersion"},
16 {37, nullptr, "ListRequiredVersion"},
17 {800, nullptr, "RequestVersionList"},
18 {801, nullptr, "ListVersionList"},
19 {802, nullptr, "RequestVersionListData"},
20 {900, nullptr, "ImportAutoUpdatePolicyJsonForDebug"},
21 {901, nullptr, "ListDefaultAutoUpdatePolicy"},
22 {902, nullptr, "ListAutoUpdatePolicyForSpecificApplication"},
23 {1000, nullptr, "PerformAutoUpdate"},
24 {1001, nullptr, "ListAutoUpdateSchedule"},
25 };
26 // clang-format on
27
28 RegisterHandlers(functions);
29}
30
31IApplicationVersionInterface::~IApplicationVersionInterface() = default;
32
33} // namespace Service::NS
diff --git a/src/core/hle/service/ns/application_version_interface.h b/src/core/hle/service/ns/application_version_interface.h
new file mode 100644
index 000000000..b288cff1b
--- /dev/null
+++ b/src/core/hle/service/ns/application_version_interface.h
@@ -0,0 +1,16 @@
1// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
2// SPDX-License-Identifier: GPL-2.0-or-later
3
4#pragma once
5
6#include "core/hle/service/service.h"
7
8namespace Service::NS {
9
10class IApplicationVersionInterface final : public ServiceFramework<IApplicationVersionInterface> {
11public:
12 explicit IApplicationVersionInterface(Core::System& system_);
13 ~IApplicationVersionInterface() override;
14};
15
16} // namespace Service::NS
diff --git a/src/core/hle/service/ns/ns.cpp b/src/core/hle/service/ns/ns.cpp
index b586fbcf0..7a28df147 100644
--- a/src/core/hle/service/ns/ns.cpp
+++ b/src/core/hle/service/ns/ns.cpp
@@ -12,6 +12,7 @@
12#include "core/hle/service/glue/glue_manager.h" 12#include "core/hle/service/glue/glue_manager.h"
13#include "core/hle/service/ipc_helpers.h" 13#include "core/hle/service/ipc_helpers.h"
14#include "core/hle/service/ns/account_proxy_interface.h" 14#include "core/hle/service/ns/account_proxy_interface.h"
15#include "core/hle/service/ns/application_version_interface.h"
15#include "core/hle/service/ns/language.h" 16#include "core/hle/service/ns/language.h"
16#include "core/hle/service/ns/ns.h" 17#include "core/hle/service/ns/ns.h"
17#include "core/hle/service/ns/ns_results.h" 18#include "core/hle/service/ns/ns_results.h"
@@ -461,31 +462,6 @@ Result IApplicationManagerInterface::ConvertApplicationLanguageToLanguageCode(
461 return ResultSuccess; 462 return ResultSuccess;
462} 463}
463 464
464IApplicationVersionInterface::IApplicationVersionInterface(Core::System& system_)
465 : ServiceFramework{system_, "IApplicationVersionInterface"} {
466 // clang-format off
467 static const FunctionInfo functions[] = {
468 {0, nullptr, "GetLaunchRequiredVersion"},
469 {1, nullptr, "UpgradeLaunchRequiredVersion"},
470 {35, nullptr, "UpdateVersionList"},
471 {36, nullptr, "PushLaunchVersion"},
472 {37, nullptr, "ListRequiredVersion"},
473 {800, nullptr, "RequestVersionList"},
474 {801, nullptr, "ListVersionList"},
475 {802, nullptr, "RequestVersionListData"},
476 {900, nullptr, "ImportAutoUpdatePolicyJsonForDebug"},
477 {901, nullptr, "ListDefaultAutoUpdatePolicy"},
478 {902, nullptr, "ListAutoUpdatePolicyForSpecificApplication"},
479 {1000, nullptr, "PerformAutoUpdate"},
480 {1001, nullptr, "ListAutoUpdateSchedule"},
481 };
482 // clang-format on
483
484 RegisterHandlers(functions);
485}
486
487IApplicationVersionInterface::~IApplicationVersionInterface() = default;
488
489IContentManagementInterface::IContentManagementInterface(Core::System& system_) 465IContentManagementInterface::IContentManagementInterface(Core::System& system_)
490 : ServiceFramework{system_, "IContentManagementInterface"} { 466 : ServiceFramework{system_, "IContentManagementInterface"} {
491 // clang-format off 467 // clang-format off
diff --git a/src/core/hle/service/ns/ns.h b/src/core/hle/service/ns/ns.h
index cd2fbc8f4..d017f10fc 100644
--- a/src/core/hle/service/ns/ns.h
+++ b/src/core/hle/service/ns/ns.h
@@ -32,12 +32,6 @@ private:
32 void ConvertApplicationLanguageToLanguageCode(HLERequestContext& ctx); 32 void ConvertApplicationLanguageToLanguageCode(HLERequestContext& ctx);
33}; 33};
34 34
35class IApplicationVersionInterface final : public ServiceFramework<IApplicationVersionInterface> {
36public:
37 explicit IApplicationVersionInterface(Core::System& system_);
38 ~IApplicationVersionInterface() override;
39};
40
41class IContentManagementInterface final : public ServiceFramework<IContentManagementInterface> { 35class IContentManagementInterface final : public ServiceFramework<IContentManagementInterface> {
42public: 36public:
43 explicit IContentManagementInterface(Core::System& system_); 37 explicit IContentManagementInterface(Core::System& system_);