From 06c00a931911b4fd9199433e860b66fe9f096d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Taylor=20Rodr=C3=ADguez?= Date: Thu, 20 Mar 2025 11:49:51 +0000 Subject: [PATCH] Fix bug where log file was not generated on first run (#729) * Fix bug where log file was not generated on first run This fix resolves issue #727. On first start, Log::Initialize attempts to create the `azahar-emu/log/` directory. However, it fails because `azahar-emu/` does not exist. Using FileUtil::CreateFullPath instead will create both `azahar-emu` and `log/`. * Update license header --- src/common/logging/backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index 5be0980ec..405cf9457 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp @@ -1,4 +1,4 @@ -// Copyright 2014 Citra Emulator Project +// Copyright Citra Emulator Project / Azahar Emulator Project // Licensed under GPLv2 or any later version // Refer to the license.txt file included. @@ -210,7 +210,7 @@ public: } initialization_in_progress_suppress_logging = true; const auto& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir); - void(FileUtil::CreateDir(log_dir)); + void(FileUtil::CreateFullPath(log_dir)); Filter filter; filter.ParseFilterString(Settings::values.log_filter.GetValue()); instance = std::unique_ptr(