diff options
author | Michael Lutz <michi@icosahedron.de> | 2020-12-06 21:11:42 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2020-12-27 13:19:25 +0100 |
commit | dd138fc460dcbab37452e90ff070a31516994aa2 (patch) | |
tree | 170edd04094e997abe891858a8e4753071983fee /src/fileio_func.h | |
parent | 860c270c73048b4930ac8cbebcd60be746eb9782 (diff) | |
download | openttd-dd138fc460dcbab37452e90ff070a31516994aa2.tar.xz |
Codechange: Stringify config file paths.
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r-- | src/fileio_func.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h index d95131880..b883a00e8 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -12,6 +12,7 @@ #include "core/enum_type.hpp" #include "fileio_type.h" +#include <string> void FioSeekTo(size_t pos, int mode); void FioSeekToFile(uint8 slot, size_t pos); @@ -64,7 +65,7 @@ void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize); bool FileExists(const char *filename); bool ExtractTar(const char *tar_filename, Subdirectory subdir); -extern const char *_personal_dir; ///< custom directory for personal settings, saves, newgrf, etc. +extern std::string _personal_dir; ///< custom directory for personal settings, saves, newgrf, etc. /** Helper for scanning for files with a given name */ class FileScanner { |