mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-10 11:21:35 -06:00
Added temp logging for debugging
This commit is contained in:
parent
a41fc80eab
commit
d5d0301702
@ -228,10 +228,13 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
|
||||
ctx.Session(), thread);
|
||||
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
|
||||
|
||||
auto nwm_inf =
|
||||
Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_INF>("nwm::INF");
|
||||
nwm_inf->HandleSyncRequest(*context);
|
||||
LOG_WARNING(Service_AC, "Finished setting up context");
|
||||
|
||||
auto nwm_inf =
|
||||
Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_INF>("nwm::INF");
|
||||
LOG_WARNING(Service_AC, "Calling NWM_INF::RecvBeaconBroadcastData");
|
||||
nwm_inf->HandleSyncRequest(*context);
|
||||
LOG_WARNING(Service_AC, "Returned to AC::ScanAPs");
|
||||
// Response should be
|
||||
// 0: Header Code (ignored)
|
||||
// 1: Result Code (Success/Unknown/etc.)
|
||||
@ -242,7 +245,7 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
|
||||
Kernel::MappedBuffer mapped_buffer = rp2.PopMappedBuffer();
|
||||
mapped_buffer.Read(buffer.data(), 0, buffer.size());
|
||||
rb.PushStaticBuffer(buffer, 0);
|
||||
LOG_WARNING(Service_AC, "(STUBBED) called");
|
||||
LOG_WARNING(Service_AC, "(STUBBED) called, pid={}, unknown={}", pid, unknown);
|
||||
}
|
||||
|
||||
void Module::Interface::GetInfraPriority(Kernel::HLERequestContext& ctx) {
|
||||
|
||||
@ -4,6 +4,7 @@
|
||||
|
||||
#include <boost/serialization/shared_ptr.hpp>
|
||||
#include "common/archives.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "core/core.h"
|
||||
#include "core/hle/ipc.h"
|
||||
#include "core/hle/ipc_helpers.h"
|
||||
@ -18,6 +19,8 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
|
||||
IPC::RequestParser rp(ctx);
|
||||
// TODO(PTR) Update implementation to cover differences between NWM_INF and NWM_UDS
|
||||
|
||||
LOG_WARNING(Service_NWM, "Started NWM_INF::RecvBeaconBroadcastData");
|
||||
|
||||
// adding in extra context value for transition from INF to UDS
|
||||
std::array<u32, IPC::COMMAND_BUFFER_LENGTH + 2 * IPC::MAX_STATIC_BUFFERS> cmd_buf;
|
||||
int i;
|
||||
@ -37,9 +40,13 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
|
||||
std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
|
||||
ctx.Session(), thread);
|
||||
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
|
||||
LOG_WARNING(Service_NWM, "Finished converting context");
|
||||
|
||||
auto nwm_uds = Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_UDS>("nwm::UDS");
|
||||
|
||||
LOG_WARNING(Service_NWM, "Calling NWM_UDS::RecvBeaconBroadcastData");
|
||||
nwm_uds->HandleSyncRequest(*context);
|
||||
LOG_WARNING(Service_NWM, "Returned to NWM_INF::RecvBeaconBroadcastData");
|
||||
|
||||
IPC::RequestParser rp2(*context);
|
||||
|
||||
@ -47,6 +54,7 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
|
||||
rb.Push(rp2.Pop<u32>());
|
||||
rb.PushMappedBuffer(rp2.PopMappedBuffer());
|
||||
|
||||
LOG_WARNING(Service_NWM, "Finished NWM_INF::RecvBeaconBroadcastData");
|
||||
}
|
||||
|
||||
NWM_INF::NWM_INF() : ServiceFramework("nwm::INF") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user