summaryrefslogtreecommitdiff
path: root/src/fileio_func.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2020-12-06 21:11:47 +0100
committerMichael Lutz <michi@icosahedron.de>2020-12-27 13:19:25 +0100
commit5cbb2da79434ec002831bd72b2c81f9dcd469601 (patch)
treea1b8fea79609c446e36a38796269dad6a1db45fd /src/fileio_func.h
parent65f65ad2ad8f029b99ef60e931b6d86952777610 (diff)
downloadopenttd-5cbb2da79434ec002831bd72b2c81f9dcd469601.tar.xz
Codechange: Even more std::string usage in file IO.
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r--src/fileio_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h
index 5007a04e6..a2da91063 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -37,7 +37,7 @@ bool IsValidSearchPath(Searchpath sp);
#define FOR_ALL_SEARCHPATHS(sp) for (sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) if (IsValidSearchPath(sp))
void FioFCloseFile(FILE *f);
-FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, size_t *filesize = nullptr);
+FILE *FioFOpenFile(const std::string &filename, const char *mode, Subdirectory subdir, size_t *filesize = nullptr);
bool FioCheckFileExists(const std::string &filename, Subdirectory subdir);
std::string FioFindFullPath(Subdirectory subdir, const char *filename);
std::string FioGetDirectory(Searchpath sp, Subdirectory subdir);
@@ -51,7 +51,7 @@ void AppendPathSeparator(std::string &buf);
void DeterminePaths(const char *exe);
void *ReadFileToMem(const char *filename, size_t *lenp, size_t maxsize);
bool FileExists(const std::string &filename);
-bool ExtractTar(const char *tar_filename, Subdirectory subdir);
+bool ExtractTar(const std::string &tar_filename, Subdirectory subdir);
extern std::string _personal_dir; ///< custom directory for personal settings, saves, newgrf, etc.