diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-05-17 23:32:10 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-05-21 20:02:34 +0200 |
commit | c972a63c8cbee7fa8d6d5af2cbbecb8c75ee561a (patch) | |
tree | 70d5b6c477666170f07469ba769adc4ec629a91c /src/fileio.cpp | |
parent | 37bc2f806462b3c2a84891b3aad6db00e935da86 (diff) | |
download | openttd-c972a63c8cbee7fa8d6d5af2cbbecb8c75ee561a.tar.xz |
Codechange: Store info about the dedicated server log file in globals with automatic destruction to simplify control flow in openttd_main.
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 5797c592b..f17a0ffc0 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -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"; } /** |