Browse Source
[hle] correct IClientProcess::RegisterClient, impl cmd 3100,3102 for ns:vm (#4376)
[hle] correct IClientProcess::RegisterClient, impl cmd 3100,3102 for ns:vm (#4376)
ldn had wrong signature ns:vm had missing function stubs that would make some games assert on missing impl Signed-off-by: lizzie <lizzie@eden-emu.dev> - [x] I have read and followed the [Contribution Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/CONTRIBUTING.md#code-contributions). - [x] I have read and followed the [AI Policy](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/AI.md) - [x] I have read and followed the [Coding Guidelines](https://git.eden-emu.dev/eden-emu/eden/src/branch/master/docs/policies/Coding.md) to the best of my ability. ------------------- Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4376 Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-by: Maufeat <sahyno1996@gmail.com>master
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
12 changed files with 82 additions and 158 deletions
-
6src/core/CMakeLists.txt
-
4src/core/file_sys/fssystem/fssystem_hierarchical_integrity_verification_storage.cpp
-
10src/core/hle/service/am/service/storage.cpp
-
27src/core/hle/service/ldn/client_process_monitor.cpp
-
25src/core/hle/service/ldn/client_process_monitor.h
-
24src/core/hle/service/ldn/ldn.cpp
-
41src/core/hle/service/ns/ns.cpp
-
31src/core/hle/service/ns/vulnerability_manager_interface.cpp
-
21src/core/hle/service/ns/vulnerability_manager_interface.h
-
18src/core/hle/service/spl/csrng.cpp
-
20src/core/hle/service/spl/csrng.h
-
13src/core/hle/service/spl/spl_module.cpp
@ -1,27 +0,0 @@ |
|||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
||||
|
|
||||
#include "core/hle/service/cmif_serialization.h"
|
|
||||
#include "core/hle/service/ldn/ldn_results.h"
|
|
||||
#include "core/hle/service/ldn/client_process_monitor.h"
|
|
||||
#include "core/hle/service/ipc_helpers.h"
|
|
||||
|
|
||||
namespace Service::LDN { |
|
||||
|
|
||||
IClientProcessMonitor::IClientProcessMonitor(Core::System& system_) |
|
||||
: ServiceFramework{system_, "IClientProcessMonitor"} { |
|
||||
static const FunctionInfo functions[] = { |
|
||||
{0, D<&IClientProcessMonitor::RegisterClient>, "RegisterClient"}, |
|
||||
}; |
|
||||
RegisterHandlers(functions); |
|
||||
} |
|
||||
|
|
||||
IClientProcessMonitor::~IClientProcessMonitor() = default; |
|
||||
|
|
||||
Result IClientProcessMonitor::RegisterClient() { |
|
||||
LOG_WARNING(Service_LDN, "(STUBBED) called"); |
|
||||
|
|
||||
R_SUCCEED(); |
|
||||
} |
|
||||
|
|
||||
} // namespace Service::LDN
|
|
||||
@ -1,25 +0,0 @@ |
|||||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project |
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later |
|
||||
|
|
||||
#pragma once |
|
||||
|
|
||||
#include "core/hle/service/cmif_types.h" |
|
||||
#include "core/hle/service/service.h" |
|
||||
|
|
||||
namespace Core { |
|
||||
class System; |
|
||||
} |
|
||||
|
|
||||
namespace Service::LDN { |
|
||||
|
|
||||
class IClientProcessMonitor final |
|
||||
: public ServiceFramework<IClientProcessMonitor> { |
|
||||
public: |
|
||||
explicit IClientProcessMonitor(Core::System& system_); |
|
||||
~IClientProcessMonitor() override; |
|
||||
|
|
||||
private: |
|
||||
Result RegisterClient(); |
|
||||
}; |
|
||||
|
|
||||
} // namespace Service::LDN |
|
||||
@ -1,31 +0,0 @@ |
|||||
// 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
|
|
||||
@ -1,21 +0,0 @@ |
|||||
// 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 |
|
||||
@ -1,18 +0,0 @@ |
|||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
||||
|
|
||||
#include "core/hle/service/spl/csrng.h"
|
|
||||
|
|
||||
namespace Service::SPL { |
|
||||
|
|
||||
CSRNG::CSRNG(Core::System& system_, std::shared_ptr<Module> module_) |
|
||||
: Interface(system_, std::move(module_), "csrng") { |
|
||||
static const FunctionInfo functions[] = { |
|
||||
{0, &CSRNG::GenerateRandomBytes, "GenerateRandomBytes"}, |
|
||||
}; |
|
||||
RegisterHandlers(functions); |
|
||||
} |
|
||||
|
|
||||
CSRNG::~CSRNG() = default; |
|
||||
|
|
||||
} // namespace Service::SPL
|
|
||||
@ -1,20 +0,0 @@ |
|||||
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project |
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later |
|
||||
|
|
||||
#pragma once |
|
||||
|
|
||||
#include "core/hle/service/spl/spl_module.h" |
|
||||
|
|
||||
namespace Core { |
|
||||
class System; |
|
||||
} |
|
||||
|
|
||||
namespace Service::SPL { |
|
||||
|
|
||||
class CSRNG final : public Module::Interface { |
|
||||
public: |
|
||||
explicit CSRNG(Core::System& system_, std::shared_ptr<Module> module_); |
|
||||
~CSRNG() override; |
|
||||
}; |
|
||||
|
|
||||
} // namespace Service::SPL |
|
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue