summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-11 00:59:19 +0200
committerbunnei <bunneidev@gmail.com>2021-05-11 05:34:38 +0200
commit934b2d8842f09a8df827cd4fd5130124788b4288 (patch)
treebe900ec32134ef0885b3246fbe2b57758393e350 /src
parenthle: kernel: svc: Update ConnectToNamedPort to use new CreateNamedServicePort interface. (diff)
downloadyuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar.gz
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar.bz2
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar.lz
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar.xz
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.tar.zst
yuzu-934b2d8842f09a8df827cd4fd5130124788b4288.zip
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/sm/sm.cpp2
-rw-r--r--src/core/hle/service/sm/sm.h1
2 files changed, 3 insertions, 0 deletions
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<ServiceManager> service_manager;
+ bool is_initialized{};
Kernel::KernelCore& kernel;
};