diff options
author | Liam <byteslice@airmail.cc> | 2024-02-17 19:54:36 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2024-02-18 16:32:21 +0100 |
commit | 626f2e65b1a799d3e5c517d480a4691176fbe8d6 (patch) | |
tree | b23c45a1330acab0ed8282697328422e5437385b /src/core/hle/service/ns/vulnerability_manager_interface.cpp | |
parent | ns: rewrite IReadOnlyApplicationControlDataInterface (diff) | |
download | yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar.gz yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar.bz2 yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar.lz yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar.xz yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.tar.zst yuzu-626f2e65b1a799d3e5c517d480a4691176fbe8d6.zip |
Diffstat (limited to 'src/core/hle/service/ns/vulnerability_manager_interface.cpp')
-rw-r--r-- | src/core/hle/service/ns/vulnerability_manager_interface.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/vulnerability_manager_interface.cpp b/src/core/hle/service/ns/vulnerability_manager_interface.cpp new file mode 100644 index 000000000..69c21fb89 --- /dev/null +++ b/src/core/hle/service/ns/vulnerability_manager_interface.cpp @@ -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 |