Qt: Use low logLevel for GBA object, overridden by GBAThread

This commit is contained in:
Jeffrey Pfau 2015-01-01 16:05:36 -08:00
parent 642ba374e7
commit d676d26f5f
1 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,8 @@ GameController::GameController(QObject* parent)
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);