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:
Michael Lutz
2020-05-17 23:32:10 +02:00
parent 37bc2f8064
commit c972a63c8c
4 changed files with 26 additions and 30 deletions

View File

@@ -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";
}
/**