ns: move IApplicationVersionInterface
This commit is contained in:
parent
ae114d2fa1
commit
12926eb5db
|
@ -741,6 +741,8 @@ add_library(core STATIC
|
||||||
hle/service/npns/npns.h
|
hle/service/npns/npns.h
|
||||||
hle/service/ns/account_proxy_interface.cpp
|
hle/service/ns/account_proxy_interface.cpp
|
||||||
hle/service/ns/account_proxy_interface.h
|
hle/service/ns/account_proxy_interface.h
|
||||||
|
hle/service/ns/application_version_interface.cpp
|
||||||
|
hle/service/ns/application_version_interface.h
|
||||||
hle/service/ns/language.cpp
|
hle/service/ns/language.cpp
|
||||||
hle/service/ns/language.h
|
hle/service/ns/language.h
|
||||||
hle/service/ns/ns_results.h
|
hle/service/ns/ns_results.h
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#include "core/hle/service/ns/application_version_interface.h"
|
||||||
|
|
||||||
|
namespace Service::NS {
|
||||||
|
|
||||||
|
IApplicationVersionInterface::IApplicationVersionInterface(Core::System& system_)
|
||||||
|
: ServiceFramework{system_, "IApplicationVersionInterface"} {
|
||||||
|
// clang-format off
|
||||||
|
static const FunctionInfo functions[] = {
|
||||||
|
{0, nullptr, "GetLaunchRequiredVersion"},
|
||||||
|
{1, nullptr, "UpgradeLaunchRequiredVersion"},
|
||||||
|
{35, nullptr, "UpdateVersionList"},
|
||||||
|
{36, nullptr, "PushLaunchVersion"},
|
||||||
|
{37, nullptr, "ListRequiredVersion"},
|
||||||
|
{800, nullptr, "RequestVersionList"},
|
||||||
|
{801, nullptr, "ListVersionList"},
|
||||||
|
{802, nullptr, "RequestVersionListData"},
|
||||||
|
{900, nullptr, "ImportAutoUpdatePolicyJsonForDebug"},
|
||||||
|
{901, nullptr, "ListDefaultAutoUpdatePolicy"},
|
||||||
|
{902, nullptr, "ListAutoUpdatePolicyForSpecificApplication"},
|
||||||
|
{1000, nullptr, "PerformAutoUpdate"},
|
||||||
|
{1001, nullptr, "ListAutoUpdateSchedule"},
|
||||||
|
};
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
|
RegisterHandlers(functions);
|
||||||
|
}
|
||||||
|
|
||||||
|
IApplicationVersionInterface::~IApplicationVersionInterface() = default;
|
||||||
|
|
||||||
|
} // namespace Service::NS
|
|
@ -0,0 +1,16 @@
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "core/hle/service/service.h"
|
||||||
|
|
||||||
|
namespace Service::NS {
|
||||||
|
|
||||||
|
class IApplicationVersionInterface final : public ServiceFramework<IApplicationVersionInterface> {
|
||||||
|
public:
|
||||||
|
explicit IApplicationVersionInterface(Core::System& system_);
|
||||||
|
~IApplicationVersionInterface() override;
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace Service::NS
|
|
@ -12,6 +12,7 @@
|
||||||
#include "core/hle/service/glue/glue_manager.h"
|
#include "core/hle/service/glue/glue_manager.h"
|
||||||
#include "core/hle/service/ipc_helpers.h"
|
#include "core/hle/service/ipc_helpers.h"
|
||||||
#include "core/hle/service/ns/account_proxy_interface.h"
|
#include "core/hle/service/ns/account_proxy_interface.h"
|
||||||
|
#include "core/hle/service/ns/application_version_interface.h"
|
||||||
#include "core/hle/service/ns/language.h"
|
#include "core/hle/service/ns/language.h"
|
||||||
#include "core/hle/service/ns/ns.h"
|
#include "core/hle/service/ns/ns.h"
|
||||||
#include "core/hle/service/ns/ns_results.h"
|
#include "core/hle/service/ns/ns_results.h"
|
||||||
|
@ -461,31 +462,6 @@ Result IApplicationManagerInterface::ConvertApplicationLanguageToLanguageCode(
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
IApplicationVersionInterface::IApplicationVersionInterface(Core::System& system_)
|
|
||||||
: ServiceFramework{system_, "IApplicationVersionInterface"} {
|
|
||||||
// clang-format off
|
|
||||||
static const FunctionInfo functions[] = {
|
|
||||||
{0, nullptr, "GetLaunchRequiredVersion"},
|
|
||||||
{1, nullptr, "UpgradeLaunchRequiredVersion"},
|
|
||||||
{35, nullptr, "UpdateVersionList"},
|
|
||||||
{36, nullptr, "PushLaunchVersion"},
|
|
||||||
{37, nullptr, "ListRequiredVersion"},
|
|
||||||
{800, nullptr, "RequestVersionList"},
|
|
||||||
{801, nullptr, "ListVersionList"},
|
|
||||||
{802, nullptr, "RequestVersionListData"},
|
|
||||||
{900, nullptr, "ImportAutoUpdatePolicyJsonForDebug"},
|
|
||||||
{901, nullptr, "ListDefaultAutoUpdatePolicy"},
|
|
||||||
{902, nullptr, "ListAutoUpdatePolicyForSpecificApplication"},
|
|
||||||
{1000, nullptr, "PerformAutoUpdate"},
|
|
||||||
{1001, nullptr, "ListAutoUpdateSchedule"},
|
|
||||||
};
|
|
||||||
// clang-format on
|
|
||||||
|
|
||||||
RegisterHandlers(functions);
|
|
||||||
}
|
|
||||||
|
|
||||||
IApplicationVersionInterface::~IApplicationVersionInterface() = default;
|
|
||||||
|
|
||||||
IContentManagementInterface::IContentManagementInterface(Core::System& system_)
|
IContentManagementInterface::IContentManagementInterface(Core::System& system_)
|
||||||
: ServiceFramework{system_, "IContentManagementInterface"} {
|
: ServiceFramework{system_, "IContentManagementInterface"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|
|
@ -32,12 +32,6 @@ private:
|
||||||
void ConvertApplicationLanguageToLanguageCode(HLERequestContext& ctx);
|
void ConvertApplicationLanguageToLanguageCode(HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
class IApplicationVersionInterface final : public ServiceFramework<IApplicationVersionInterface> {
|
|
||||||
public:
|
|
||||||
explicit IApplicationVersionInterface(Core::System& system_);
|
|
||||||
~IApplicationVersionInterface() override;
|
|
||||||
};
|
|
||||||
|
|
||||||
class IContentManagementInterface final : public ServiceFramework<IContentManagementInterface> {
|
class IContentManagementInterface final : public ServiceFramework<IContentManagementInterface> {
|
||||||
public:
|
public:
|
||||||
explicit IContentManagementInterface(Core::System& system_);
|
explicit IContentManagementInterface(Core::System& system_);
|
||||||
|
|
Reference in New Issue