From 934b2d8842f09a8df827cd4fd5130124788b4288 Mon Sep 17 00:00:00 2001 From: bunnei Date: Mon, 10 May 2021 15:59:19 -0700 Subject: hle: service: sm: Improve Initialize implementation. --- src/core/hle/service/sm/sm.cpp | 2 ++ src/core/hle/service/sm/sm.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/hle/service/sm/sm.cpp b/src/core/hle/service/sm/sm.cpp index 568effbc9..7bd571880 100644 --- a/src/core/hle/service/sm/sm.cpp +++ b/src/core/hle/service/sm/sm.cpp @@ -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); } diff --git a/src/core/hle/service/sm/sm.h b/src/core/hle/service/sm/sm.h index af5010c3b..fed65af4f 100644 --- a/src/core/hle/service/sm/sm.h +++ b/src/core/hle/service/sm/sm.h @@ -44,6 +44,7 @@ private: void UnregisterService(Kernel::HLERequestContext& ctx); std::shared_ptr service_manager; + bool is_initialized{}; Kernel::KernelCore& kernel; }; -- cgit v1.2.3