From db982a1a57f79069e595dcd17ef2eb758d1f88ae Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 7 Jun 2024 19:20:51 +0200 Subject: [PATCH] gx2: add GX2GetMainCoreId --- include/gx2/state.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/gx2/state.h b/include/gx2/state.h index 4ea35e2bd..17484656a 100644 --- a/include/gx2/state.h +++ b/include/gx2/state.h @@ -1,4 +1,5 @@ #pragma once + #include #include "enum.h" @@ -24,6 +25,12 @@ GX2Flush(); void GX2ResetGPU(uint32_t unknown); +/** + * @return 1 if GX2 is not running, on success the core where GX2Init has been called is returned. + */ +int +GX2GetMainCoreId(); + #ifdef __cplusplus } #endif