mirror of
https://github.com/wiiu-env/ftpiiu_plugin.git
synced 2024-11-18 02:39:21 +01:00
Don't add logs to the message queue on wii u because they never get cleared
This commit is contained in:
parent
5d3436b069
commit
5f412962cb
@ -41,7 +41,7 @@ namespace
|
|||||||
constexpr auto MAX_LOGS = 250;
|
constexpr auto MAX_LOGS = 250;
|
||||||
#else
|
#else
|
||||||
/// \brief Maximum number of log messages to keep
|
/// \brief Maximum number of log messages to keep
|
||||||
constexpr auto MAX_LOGS = 10000;
|
constexpr auto MAX_LOGS = 100;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CLASSIC
|
#ifdef CLASSIC
|
||||||
@ -97,9 +97,7 @@ void drawLog ()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
auto const maxLogs =
|
auto const maxLogs =
|
||||||
#ifdef __WIIU__
|
#if defined(CLASSIC) && !defined(__WIIU__)
|
||||||
1000;
|
|
||||||
#elif defined(CLASSIC)
|
|
||||||
g_logConsole.windowHeight;
|
g_logConsole.windowHeight;
|
||||||
#else
|
#else
|
||||||
MAX_LOGS;
|
MAX_LOGS;
|
||||||
@ -247,6 +245,10 @@ void response (char const *const fmt_, ...)
|
|||||||
|
|
||||||
void addLog (LogLevel const level_, char const *const fmt_, va_list ap_)
|
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
|
#ifdef NDEBUG
|
||||||
if (level_ == DEBUGLOG)
|
if (level_ == DEBUGLOG)
|
||||||
return;
|
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_)
|
void addLog (LogLevel const level_, std::string_view const message_)
|
||||||
{
|
{
|
||||||
|
#ifdef __WIIU__
|
||||||
|
// the plugin is currently never calling drawLogs
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
if (level_ == DEBUGLOG)
|
if (level_ == DEBUGLOG)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user