From 045821612d78ec348131d49ca20199bd61e3bd81 Mon Sep 17 00:00:00 2001 From: Philippe Symons Date: Fri, 9 Jan 2026 20:54:48 +0100 Subject: [PATCH] Disable "Print Clock" menu entry by default --- include/menu/MenuFunctions.h | 4 ++++ src/menu/MenuEntries.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/menu/MenuFunctions.h b/include/menu/MenuFunctions.h index 7164078..1ecb023 100755 --- a/include/menu/MenuFunctions.h +++ b/include/menu/MenuFunctions.h @@ -6,6 +6,8 @@ #include +//#define PRINT_CLOCK_FUNCTION_ENABLED 1 + // these are used to pass as a pointer to the gen1PrepareToTeachPikachu function extern const Move MOVE_SURF; extern const Move MOVE_FLY; @@ -125,6 +127,8 @@ void resetRTC(void* context, const void* param); */ void gen2ReceiveMysteryGift(void* context, const void* param); +#ifdef PRINT_CLOCK_FUNCTION_ENABLED void printClock(void* context, const void* param); +#endif #endif \ No newline at end of file diff --git a/src/menu/MenuEntries.cpp b/src/menu/MenuEntries.cpp index 16d6b78..c53777e 100755 --- a/src/menu/MenuEntries.cpp +++ b/src/menu/MenuEntries.cpp @@ -70,10 +70,12 @@ MenuItemData gen2MenuEntries[] = { .title = "Reset Game Clock", .onConfirmAction = resetRTC }, +#ifdef PRINT_CLOCK_FUNCTION_ENABLED { .title = "Print Game Clock", .onConfirmAction = printClock }, +#endif { .title = "About", .onConfirmAction = goToAboutScene @@ -111,10 +113,12 @@ MenuItemData gen2CrystalMenuEntries[] = { .title = "Reset Game Clock", .onConfirmAction = resetRTC }, +#ifdef PRINT_CLOCK_FUNCTION_ENABLED { .title = "Print Game Clock", .onConfirmAction = printClock }, +#endif { .title = "About", .onConfirmAction = goToAboutScene