diff options
author | Niels Martin Hansen <nielsm@indvikleren.dk> | 2018-04-29 20:07:22 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-06-05 22:58:35 +0200 |
commit | 458e441a4ca5d451941958e056189a059f2eee76 (patch) | |
tree | 359f278aa0c6297eda3b41523424f5c72f8ab2c9 | |
parent | e2fa4b71c62bb09add85c231bd30a2b86ae8b5e6 (diff) | |
download | openttd-458e441a4ca5d451941958e056189a059f2eee76.tar.xz |
Codechange: Make FioCreateDirectory public
-rw-r--r-- | src/fileio.cpp | 2 | ||||
-rw-r--r-- | src/fileio_func.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp index 8b5e56fb5..3ad5be711 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -532,7 +532,7 @@ FILE *FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, * Create a directory with the given name * @param name the new name of the directory */ -static void FioCreateDirectory(const char *name) +void FioCreateDirectory(const char *name) { /* Ignore directory creation errors; they'll surface later on, and most * of the time they are 'directory already exists' errors anyhow. */ diff --git a/src/fileio_func.h b/src/fileio_func.h index 2dc9afed1..638318074 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -55,6 +55,7 @@ char *FioGetFullPath(char *buf, const char *last, Searchpath sp, Subdirectory su char *FioFindFullPath(char *buf, const char *last, Subdirectory subdir, const char *filename); char *FioAppendDirectory(char *buf, const char *last, Searchpath sp, Subdirectory subdir); char *FioGetDirectory(char *buf, const char *last, Subdirectory subdir); +void FioCreateDirectory(const char *name); const char *FiosGetScreenshotDir(); |