all repos — mgba @ d676d26f5fad2514b412f225518e140f8d167ebf

mGBA Game Boy Advance Emulator

Qt: Use low logLevel for GBA object, overridden by GBAThread
Jeffrey Pfau jeffrey@endrift.com
Thu, 01 Jan 2015 16:05:36 -0800
commit

d676d26f5fad2514b412f225518e140f8d167ebf

parent

642ba374e7c3c65dfb74c6d8ba1cc5beca839f3e

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -82,6 +82,8 @@

m_threadContext.startCallback = [] (GBAThread* context) { GameController* controller = static_cast<GameController*>(context->userData); controller->m_audioProcessor->setInput(context); + // Override the GBA object's log level to prevent stdout spew + context->gba->logLevel = GBA_LOG_FATAL; context->gba->luminanceSource = &controller->m_lux; context->gba->rtcSource = &controller->m_rtc; controller->gameStarted(context);