mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-10 11:21:35 -06:00
Moved kernel retrieval to argument
This commit is contained in:
parent
bb4de89652
commit
5dea8a125b
@ -219,12 +219,12 @@ void Module::Interface::ScanAPs(Kernel::HLERequestContext& ctx) {
|
||||
cmd_buf[18] = (size << 4) | 12;
|
||||
cmd_buf[19] = buffer_id;
|
||||
|
||||
Kernel::KernelSystem kernel = Core::System::GetInstance().Kernel();
|
||||
std::shared_ptr<Kernel::Thread> thread = ctx.ClientThread();
|
||||
auto current_process = thread->owner_process.lock();
|
||||
|
||||
auto context =
|
||||
std::make_shared<Kernel::HLERequestContext>(kernel, SharedFrom(this), thread);
|
||||
std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
|
||||
SharedFrom(this), thread);
|
||||
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
|
||||
|
||||
auto nwm_inf =
|
||||
|
||||
@ -27,11 +27,11 @@ void NWM_INF::RecvBeaconBroadcastData(Kernel::HLERequestContext& ctx) {
|
||||
cmd_buf[i] = ctx_data[i - 1];
|
||||
}
|
||||
|
||||
Kernel::KernelSystem kernel = Core::System::GetInstance().Kernel();
|
||||
std::shared_ptr<Kernel::Thread> thread = ctx.ClientThread();
|
||||
auto current_process = thread->owner_process.lock();
|
||||
auto context =
|
||||
std::make_shared<Kernel::HLERequestContext>(kernel, SharedFrom(this), thread);
|
||||
std::make_shared<Kernel::HLERequestContext>(Core::System::GetInstance().Kernel(),
|
||||
SharedFrom(this), thread);
|
||||
context->PopulateFromIncomingCommandBuffer(cmd_buf.data(), current_process);
|
||||
|
||||
auto nwm_uds = Core::System::GetInstance().ServiceManager().GetService<Service::NWM::NWM_UDS>("nwm::UDS");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user