From 510d80038d2adfdc47e51ae24404ec3fb5136635 Mon Sep 17 00:00:00 2001 From: Crementif <26669564+Crementif@users.noreply.github.com> Date: Mon, 19 Sep 2022 21:41:01 +0200 Subject: [PATCH] [coreinit] Add OSIsDebuggerPresent --- src/Cafe/OS/libs/coreinit/coreinit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Cafe/OS/libs/coreinit/coreinit.cpp b/src/Cafe/OS/libs/coreinit/coreinit.cpp index 4a9f3f30..1869f55c 100644 --- a/src/Cafe/OS/libs/coreinit/coreinit.cpp +++ b/src/Cafe/OS/libs/coreinit/coreinit.cpp @@ -230,6 +230,11 @@ namespace coreinit return 0; } + uint32 OSIsDebuggerPresent() + { + return 0; + } + uint32 OSGetConsoleType() { return 0x03000050; @@ -295,6 +300,7 @@ namespace coreinit cafeExportRegister("coreinit", OSGetCoreId, LogType::CoreinitThread); cafeExportRegister("coreinit", OSGetCoreCount, LogType::CoreinitThread); cafeExportRegister("coreinit", OSIsDebuggerInitialized, LogType::CoreinitThread); + cafeExportRegister("coreinit", OSIsDebuggerPresent, LogType::CoreinitThread); cafeExportRegister("coreinit", OSGetConsoleType, LogType::CoreinitThread); cafeExportRegister("coreinit", OSGetMainCoreId, LogType::CoreinitThread); cafeExportRegister("coreinit", OSIsMainCore, LogType::CoreinitThread);