diff options
author | rubidium <rubidium@openttd.org> | 2011-09-08 09:48:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-09-08 09:48:52 +0000 |
commit | 414c397000935162df4641dbe0c056b39d32205e (patch) | |
tree | 017dc3d94c6c765e1ba9fa28e46f536b7ec1b384 /src/fios.cpp | |
parent | 92244f1663367a14051578daa4120c748b1ba9f4 (diff) | |
download | openttd-414c397000935162df4641dbe0c056b39d32205e.tar.xz |
(svn r22904) -Codechange: add tar filename to file scanning
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index 627fdf291..731a12ecd 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -232,7 +232,7 @@ public: callback_proc(callback_proc) {} - /* virtual */ bool AddFile(const char *filename, size_t basepath_length); + /* virtual */ bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename); }; /** @@ -241,7 +241,7 @@ public: * @param basepath_length amount of characters to chop of before to get a relative filename * @return true if the file is added. */ -bool FiosFileScanner::AddFile(const char *filename, size_t basepath_length) +bool FiosFileScanner::AddFile(const char *filename, size_t basepath_length, const char *tar_filename) { const char *ext = strrchr(filename, '.'); if (ext == NULL) return false; @@ -597,7 +597,7 @@ public: this->scanned = true; } - /* virtual */ bool AddFile(const char *filename, size_t basepath_length) + /* virtual */ bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename) { FILE *f = FioFOpenFile(filename, "r", SCENARIO_DIR); if (f == NULL) return false; |