mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-07 15:39:59 +01:00
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
This commit is contained in:
parent
2fbfb8159c
commit
06c00a9319
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2014 Citra Emulator Project
|
// Copyright Citra Emulator Project / Azahar Emulator Project
|
||||||
// Licensed under GPLv2 or any later version
|
// Licensed under GPLv2 or any later version
|
||||||
// Refer to the license.txt file included.
|
// Refer to the license.txt file included.
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ public:
|
|||||||
}
|
}
|
||||||
initialization_in_progress_suppress_logging = true;
|
initialization_in_progress_suppress_logging = true;
|
||||||
const auto& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
|
const auto& log_dir = FileUtil::GetUserPath(FileUtil::UserPath::LogDir);
|
||||||
void(FileUtil::CreateDir(log_dir));
|
void(FileUtil::CreateFullPath(log_dir));
|
||||||
Filter filter;
|
Filter filter;
|
||||||
filter.ParseFilterString(Settings::values.log_filter.GetValue());
|
filter.ParseFilterString(Settings::values.log_filter.GetValue());
|
||||||
instance = std::unique_ptr<Impl, decltype(&Deleter)>(
|
instance = std::unique_ptr<Impl, decltype(&Deleter)>(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user