4 changed files with 57 additions and 25 deletions
-
2src/core/CMakeLists.txt
-
28src/core/hle/service/ns/ns.cpp
-
31src/core/hle/service/ns/vulnerability_manager_interface.cpp
-
21src/core/hle/service/ns/vulnerability_manager_interface.h
@ -0,0 +1,31 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|||
|
|||
#include "core/hle/service/cmif_serialization.h"
|
|||
#include "core/hle/service/ns/vulnerability_manager_interface.h"
|
|||
|
|||
namespace Service::NS { |
|||
|
|||
IVulnerabilityManagerInterface::IVulnerabilityManagerInterface(Core::System& system_) |
|||
: ServiceFramework{system_, "ns:vm"} { |
|||
// clang-format off
|
|||
static const FunctionInfo functions[] = { |
|||
{1200, D<&IVulnerabilityManagerInterface::NeedsUpdateVulnerability>, "NeedsUpdateVulnerability"}, |
|||
{1201, nullptr, "UpdateSafeSystemVersionForDebug"}, |
|||
{1202, nullptr, "GetSafeSystemVersion"}, |
|||
}; |
|||
// clang-format on
|
|||
|
|||
RegisterHandlers(functions); |
|||
} |
|||
|
|||
IVulnerabilityManagerInterface::~IVulnerabilityManagerInterface() = default; |
|||
|
|||
Result IVulnerabilityManagerInterface::NeedsUpdateVulnerability( |
|||
Out<bool> out_needs_update_vulnerability) { |
|||
LOG_WARNING(Service_NS, "(STUBBED) called"); |
|||
*out_needs_update_vulnerability = false; |
|||
R_SUCCEED(); |
|||
} |
|||
|
|||
} // namespace Service::NS
|
|||
@ -0,0 +1,21 @@ |
|||
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project |
|||
// SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
#pragma once |
|||
|
|||
#include "core/hle/service/cmif_types.h" |
|||
#include "core/hle/service/service.h" |
|||
|
|||
namespace Service::NS { |
|||
|
|||
class IVulnerabilityManagerInterface final |
|||
: public ServiceFramework<IVulnerabilityManagerInterface> { |
|||
public: |
|||
explicit IVulnerabilityManagerInterface(Core::System& system_); |
|||
~IVulnerabilityManagerInterface() override; |
|||
|
|||
private: |
|||
Result NeedsUpdateVulnerability(Out<bool> out_needs_update_vulnerability); |
|||
}; |
|||
|
|||
} // namespace Service::NS |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue