From 8a750fb4f246b5aa5924ff8166b6d5d9bea73555 Mon Sep 17 00:00:00 2001 From: RadWolfie Date: Mon, 29 Mar 2021 18:52:28 -0500 Subject: [PATCH] kernel: add warning message --- src/core/kernel/init/CxbxKrnl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/kernel/init/CxbxKrnl.cpp b/src/core/kernel/init/CxbxKrnl.cpp index 1625c5ea8..5bd167979 100644 --- a/src/core/kernel/init/CxbxKrnl.cpp +++ b/src/core/kernel/init/CxbxKrnl.cpp @@ -1520,7 +1520,10 @@ __declspec(noreturn) void CxbxKrnlInit InitXboxThread(); g_AffinityPolicy->SetAffinityXbox(); - xbox::ObInitSystem(); + if (!xbox::ObInitSystem()) { + // TODO: Replace EmuLogEx to CxbxKrnlCleanupEx when ObInitSystem's calls are properly implement. + EmuLogEx(LOG_PREFIX_INIT, LOG_LEVEL::WARNING, "Unable to intialize xbox::ObInitSystem."); + } xbox::KiInitSystem(); EmuX86_Init();