From de6f657c3ddbc522fee2fefc206aa78ad2d00563 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 12 Jul 2024 13:23:21 +0200 Subject: [PATCH] Don't add logs to the message queue on wii u because they never get cleared --- source/log.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/source/log.cpp b/source/log.cpp index 8de4827..c6effd8 100644 --- a/source/log.cpp +++ b/source/log.cpp @@ -41,7 +41,7 @@ namespace constexpr auto MAX_LOGS = 250; #else /// \brief Maximum number of log messages to keep -constexpr auto MAX_LOGS = 10000; +constexpr auto MAX_LOGS = 100; #endif #ifdef CLASSIC @@ -97,9 +97,7 @@ void drawLog () #endif auto const maxLogs = -#ifdef __WIIU__ - 1000; -#elif defined(CLASSIC) +#if defined(CLASSIC) && !defined(__WIIU__) g_logConsole.windowHeight; #else MAX_LOGS; @@ -247,6 +245,10 @@ void response (char const *const fmt_, ...) void addLog (LogLevel const level_, char const *const fmt_, va_list ap_) { +#ifdef __WIIU__ + // the plugin is currently never calling drawLogs + return; +#endif #ifdef NDEBUG if (level_ == DEBUGLOG) return; @@ -277,6 +279,10 @@ void addLog (LogLevel const level_, char const *const fmt_, va_list ap_) void addLog (LogLevel const level_, std::string_view const message_) { +#ifdef __WIIU__ + // the plugin is currently never calling drawLogs + return; +#endif #ifdef NDEBUG if (level_ == DEBUGLOG) return;