Fixed remaining coding style errors

This commit is contained in:
PTRCoder 2024-08-24 16:46:11 +02:00
parent 5f00bb04c7
commit 219cc83c41
2 changed files with 4 additions and 4 deletions

View File

@ -228,12 +228,12 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
cmd_buf[19] = output_buffer; // address of output buffer
// Create context for call to NWM_INF::RecvBeaconBroadcastData
auto context = std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
auto context = std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
ctx.Session(), thread);
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
// Retrieve service from service manager
auto nwm_inf =
auto nwm_inf =
Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_INF>("nwm::INF");
// Perform delegated task
nwm_inf->HandleSyncRequest(*context);

View File

@ -43,11 +43,11 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
// Prepare for call to NWM_UDS
std::shared_ptr<Kernel::Thread> thread = ctx.ClientThread();
auto current_process = thread->owner_process.lock();
auto context = std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
auto context = std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
ctx.Session(), thread);
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
auto nwm_uds =
auto nwm_uds =
Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_UDS>("nwm::UDS");
nwm_uds->HandleSyncRequest(*context);