diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 20fb98663a..29ce5f898d 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp @@ -124,6 +124,15 @@ int main(int argc, char** argv) { std::string movie_record; std::string movie_play; + Log::Filter log_filter; + log_filter.ParseFilterString(Settings::values.log_filter); + Log::SetGlobalFilter(log_filter); + + Log::AddBackend(std::make_unique()); + FileUtil::CreateFullPath(FileUtil::GetUserPath(D_LOGS_IDX)); + Log::AddBackend( + std::make_unique(FileUtil::GetUserPath(D_LOGS_IDX) + LOG_FILE)); + char* endarg; #ifdef _WIN32 int argc_w; @@ -257,15 +266,6 @@ int main(int argc, char** argv) { return -1; } - Log::Filter log_filter; - log_filter.ParseFilterString(Settings::values.log_filter); - Log::SetGlobalFilter(log_filter); - - Log::AddBackend(std::make_unique()); - FileUtil::CreateFullPath(FileUtil::GetUserPath(D_LOGS_IDX)); - Log::AddBackend( - std::make_unique(FileUtil::GetUserPath(D_LOGS_IDX) + LOG_FILE)); - // Apply the command line arguments Settings::values.gdbstub_port = gdb_port; Settings::values.use_gdbstub = use_gdbstub;