summaryrefslogtreecommitdiff
path: root/src/fileio_func.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-06-10 23:13:34 +0200
committerGitHub <noreply@github.com>2021-06-10 23:13:34 +0200
commited3946e295f0e74880d85ffb6f6a933ca87e460d (patch)
tree9974df7701d3258f652d96a83d20592489a6e305 /src/fileio_func.h
parent076f3d26c238a9443b367629ab97dc1a5cf9b931 (diff)
downloadopenttd-ed3946e295f0e74880d85ffb6f6a933ca87e460d.tar.xz
Add: '-X' option to ignore global folders in the search path (#9341)
This is extreme useful for automated testing. Without this, OpenTTD will always look in your personal-dir (like ~/.local/share/openttd or %USER%\Documents\OpenTTD). For most users this is exactly what we want, that there is a shared place for all their files. However, for automated testing this is rather annoying, as your local development files influence the automated test. As such, '-X' counters this, and only gives the local folders. This is especially useful in combination with '-x' and '-c'.
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r--src/fileio_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h
index baa8cb1bb..3556849a0 100644
--- a/src/fileio_func.h
+++ b/src/fileio_func.h
@@ -27,7 +27,7 @@ const char *FiosGetScreenshotDir();
void SanitizeFilename(char *filename);
void AppendPathSeparator(std::string &buf);
-void DeterminePaths(const char *exe);
+void DeterminePaths(const char *exe, bool only_local_path);
std::unique_ptr<char[]> ReadFileToMem(const std::string &filename, size_t &lenp, size_t maxsize);
bool FileExists(const std::string &filename);
bool ExtractTar(const std::string &tar_filename, Subdirectory subdir);