Qt: Implement Batch flag (-b)

This commit is contained in:
spycrab 2018-04-29 19:13:40 +02:00
parent 1c9b64ff02
commit 2a837a82d4
4 changed files with 14 additions and 1 deletions

View file

@ -87,6 +87,7 @@ int main(int argc, char* argv[])
UICommon::Init();
Resources::Init();
Settings::Instance().SetDebugModeEnabled(options.is_set("debugger"));
Settings::Instance().SetBatchModeEnabled(options.is_set("batch"));
// Hook up alerts from core
RegisterMsgAlertHandler(QtMsgAlertHandler);