mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
Codechange: Store info about the dedicated server log file in globals with automatic destruction to simplify control flow in openttd_main.
This commit is contained in:
@@ -1245,8 +1245,9 @@ void DeterminePaths(const char *exe)
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
extern char *_log_file;
|
||||
_log_file = str_fmt("%sopenttd.log", _personal_dir);
|
||||
extern std::string _log_file;
|
||||
_log_file = _personal_dir;
|
||||
_log_file += "openttd.log";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user