summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias <thm.frey@gmail.com>2018-08-24 01:52:06 +0200
committerbunnei <bunneidev@gmail.com>2018-08-24 01:52:06 +0200
commit165c23c84844707249449826a8a18c25877e784b (patch)
tree33008243e0c61ce9f750523861d4dda2224b9a00
parentAdded GetBootMode (#1107) (diff)
downloadyuzu-165c23c84844707249449826a8a18c25877e784b.tar
yuzu-165c23c84844707249449826a8a18c25877e784b.tar.gz
yuzu-165c23c84844707249449826a8a18c25877e784b.tar.bz2
yuzu-165c23c84844707249449826a8a18c25877e784b.tar.lz
yuzu-165c23c84844707249449826a8a18c25877e784b.tar.xz
yuzu-165c23c84844707249449826a8a18c25877e784b.tar.zst
yuzu-165c23c84844707249449826a8a18c25877e784b.zip
-rw-r--r--src/yuzu/main.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index c62360bd4..98a41a725 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -91,9 +91,20 @@ void GMainWindow::ShowCallouts() {}
const int GMainWindow::max_recent_files_item;
+static void InitializeLogging() {
+ Log::Filter log_filter;
+ log_filter.ParseFilterString(Settings::values.log_filter);
+ Log::SetGlobalFilter(log_filter);
+
+ const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
+ FileUtil::CreateFullPath(log_dir);
+ Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE));
+}
+
GMainWindow::GMainWindow()
: config(new Config()), emu_thread(nullptr),
vfs(std::make_shared<FileSys::RealVfsFilesystem>()) {
+ InitializeLogging();
debug_context = Tegra::DebugContext::Construct();
@@ -1173,16 +1184,6 @@ void GMainWindow::UpdateUITheme() {
#undef main
#endif
-static void InitializeLogging() {
- Log::Filter log_filter;
- log_filter.ParseFilterString(Settings::values.log_filter);
- Log::SetGlobalFilter(log_filter);
-
- const std::string& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
- FileUtil::CreateFullPath(log_dir);
- Log::AddBackend(std::make_unique<Log::FileBackend>(log_dir + LOG_FILE));
-}
-
int main(int argc, char* argv[]) {
MicroProfileOnThreadCreate("Frontend");
SCOPE_EXIT({ MicroProfileShutdown(); });
@@ -1200,7 +1201,6 @@ int main(int argc, char* argv[]) {
GMainWindow main_window;
// After settings have been loaded by GMainWindow, apply the filter
- InitializeLogging();
main_window.show();
return app.exec();
}