Browse Source

hle: service: sm: Improve Initialize implementation.

nce_cpp
bunnei 5 years ago
parent
commit
11413d71ad
  1. 2
      src/core/hle/service/sm/sm.cpp
  2. 1
      src/core/hle/service/sm/sm.h

2
src/core/hle/service/sm/sm.cpp

@ -107,6 +107,8 @@ SM::~SM() = default;
void SM::Initialize(Kernel::HLERequestContext& ctx) { void SM::Initialize(Kernel::HLERequestContext& ctx) {
LOG_DEBUG(Service_SM, "called"); LOG_DEBUG(Service_SM, "called");
is_initialized = true;
IPC::ResponseBuilder rb{ctx, 2}; IPC::ResponseBuilder rb{ctx, 2};
rb.Push(RESULT_SUCCESS); rb.Push(RESULT_SUCCESS);
} }

1
src/core/hle/service/sm/sm.h

@ -44,6 +44,7 @@ private:
void UnregisterService(Kernel::HLERequestContext& ctx); void UnregisterService(Kernel::HLERequestContext& ctx);
std::shared_ptr<ServiceManager> service_manager; std::shared_ptr<ServiceManager> service_manager;
bool is_initialized{};
Kernel::KernelCore& kernel; Kernel::KernelCore& kernel;
}; };

Loading…
Cancel
Save