1
0
Fork 0
forked from suyu/suyu

hle: service: sm: Improve Initialize implementation.

This commit is contained in:
bunnei 2021-05-10 15:59:19 -07:00
parent f54ea749a4
commit 934b2d8842
2 changed files with 3 additions and 0 deletions

View file

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

View file

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