summaryrefslogtreecommitdiffstats
path: root/src/citra_qt
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2015-03-09 20:42:18 +0100
committerbunnei <bunneidev@gmail.com>2015-03-09 20:42:18 +0100
commit3da94a597b5642c1b586700d72255589cf5a0cdf (patch)
tree9f73ded034bceaab1f7e41cf19fe987d19b2e083 /src/citra_qt
parentMerge pull request #645 from lioncash/ldm (diff)
parentLogging: check for filter before sending to the queue, to skip all heavy formatting on the other thread. (diff)
downloadyuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.gz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.bz2
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.lz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.xz
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.tar.zst
yuzu-3da94a597b5642c1b586700d72255589cf5a0cdf.zip
Diffstat (limited to 'src/citra_qt')
-rw-r--r--src/citra_qt/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index e3db3c20a..e5ca04124 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -316,7 +316,8 @@ int __cdecl main(int argc, char* argv[])
{
std::shared_ptr<Log::Logger> logger = Log::InitGlobalLogger();
Log::Filter log_filter(Log::Level::Info);
- std::thread logging_thread(Log::TextLoggingLoop, logger, &log_filter);
+ Log::SetFilter(&log_filter);
+ std::thread logging_thread(Log::TextLoggingLoop, logger);
SCOPE_EXIT({
logger->Close();
logging_thread.join();