From 51bffb7144b2c04d131ab70f37c2691505021178 Mon Sep 17 00:00:00 2001 From: Archez Date: Sun, 14 Apr 2024 21:33:52 -0400 Subject: [PATCH] add debug inventory editor check (#196) --- .../kaleido_scope/ovl_kaleido_scope/z_kaleido_scope_NES.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mm/src/overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope_NES.c b/mm/src/overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope_NES.c index 05217778a..09e519245 100644 --- a/mm/src/overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope_NES.c +++ b/mm/src/overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope_NES.c @@ -483,6 +483,13 @@ void KaleidoScope_HandlePageToggles(PlayState* play, Input* input) { PauseContext* pauseCtx = &play->pauseCtx; InterfaceContext* interfaceCtx = &play->interfaceCtx; + // 2S2H [Debug] Restoring input check for debug inventory editor based on OOT debug + if (CVarGetInteger("gDeveloperTools.DebugEnabled", 0) && (pauseCtx->debugEditor == DEBUG_EDITOR_NONE) && + CHECK_BTN_ALL(input->press.button, BTN_L)) { + pauseCtx->debugEditor = DEBUG_EDITOR_INVENTORY_INIT; + return; + } + //! FAKE if (1) {}