mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-22 10:39:43 +00:00
Codechange: make Subdirectory a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
93a6aa77c6
commit
5aae8e2d64
+2
-2
@@ -111,14 +111,14 @@ void DumpDebugFacilityNames(std::back_insert_iterator<std::string> &output_itera
|
||||
void DebugPrint(std::string_view category, int level, std::string &&message)
|
||||
{
|
||||
if (category == "desync" && level != 0) {
|
||||
static auto f = FioFOpenFile("commands-out.log", "wb", AUTOSAVE_DIR);
|
||||
static auto f = FioFOpenFile("commands-out.log", "wb", Subdirectory::Autosave);
|
||||
if (!f.has_value()) return;
|
||||
|
||||
fmt::print(*f, "{}{}\n", GetLogPrefix(true), message);
|
||||
fflush(*f);
|
||||
#ifdef RANDOM_DEBUG
|
||||
} else if (category == "random") {
|
||||
static auto f = FioFOpenFile("random-out.log", "wb", AUTOSAVE_DIR);
|
||||
static auto f = FioFOpenFile("random-out.log", "wb", Subdirectory::Autosave);
|
||||
if (!f.has_value()) return;
|
||||
|
||||
fmt::print(*f, "{}\n", message);
|
||||
|
||||
Reference in New Issue
Block a user