yuzu-emu
/
yuzu-mainline
Archived
1
0
Fork 0

ldn: return no connection from GetStateForMonitor

This commit is contained in:
Liam 2024-02-24 13:03:25 -05:00
parent fd718f350c
commit 4050242cf3
2 changed files with 9 additions and 5 deletions

View File

@ -2,6 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-or-later // SPDX-License-Identifier: GPL-3.0-or-later
#include "core/hle/service/cmif_serialization.h" #include "core/hle/service/cmif_serialization.h"
#include "core/hle/service/ldn/ldn_results.h"
#include "core/hle/service/ldn/monitor_service.h" #include "core/hle/service/ldn/monitor_service.h"
namespace Service::LDN { namespace Service::LDN {
@ -17,7 +18,7 @@ IMonitorService::IMonitorService(Core::System& system_)
{4, nullptr, "GetSecurityParameterForMonitor"}, {4, nullptr, "GetSecurityParameterForMonitor"},
{5, nullptr, "GetNetworkConfigForMonitor"}, {5, nullptr, "GetNetworkConfigForMonitor"},
{100, C<&IMonitorService::InitializeMonitor>, "InitializeMonitor"}, {100, C<&IMonitorService::InitializeMonitor>, "InitializeMonitor"},
{101, nullptr, "FinalizeMonitor"}, {101, C<&IMonitorService::FinalizeMonitor>, "FinalizeMonitor"},
}; };
// clang-format on // clang-format on
@ -27,16 +28,18 @@ IMonitorService::IMonitorService(Core::System& system_)
IMonitorService::~IMonitorService() = default; IMonitorService::~IMonitorService() = default;
Result IMonitorService::GetStateForMonitor(Out<State> out_state) { Result IMonitorService::GetStateForMonitor(Out<State> out_state) {
LOG_INFO(Service_LDN, "called"); LOG_WARNING(Service_LDN, "(STUBBED) called");
*out_state = State::None;
*out_state = state;
R_SUCCEED(); R_SUCCEED();
} }
Result IMonitorService::InitializeMonitor() { Result IMonitorService::InitializeMonitor() {
LOG_INFO(Service_LDN, "called"); LOG_INFO(Service_LDN, "called");
R_SUCCEED();
}
state = State::Initialized; Result IMonitorService::FinalizeMonitor() {
LOG_INFO(Service_LDN, "called");
R_SUCCEED(); R_SUCCEED();
} }

View File

@ -21,6 +21,7 @@ public:
private: private:
Result GetStateForMonitor(Out<State> out_state); Result GetStateForMonitor(Out<State> out_state);
Result InitializeMonitor(); Result InitializeMonitor();
Result FinalizeMonitor();
State state{State::None}; State state{State::None};
}; };