diff options
author | rubidium <rubidium@openttd.org> | 2010-05-10 09:37:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-05-10 09:37:17 +0000 |
commit | 948beec597f788bc661bf7869d4ab27945215e53 (patch) | |
tree | 3d49135c91d76b6c2dc3b7daeebfbfe4e4c9a7ab /src/fileio_func.h | |
parent | 8a2fecbff5532f5208c457d6f49742f4cc0ff754 (diff) | |
download | openttd-948beec597f788bc661bf7869d4ab27945215e53.tar.xz |
(svn r19777) -Change: use the file scanner to find the .tars
Diffstat (limited to 'src/fileio_func.h')
-rw-r--r-- | src/fileio_func.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/fileio_func.h b/src/fileio_func.h index 53b3aa233..05253b432 100644 --- a/src/fileio_func.h +++ b/src/fileio_func.h @@ -87,6 +87,14 @@ public: virtual bool AddFile(const char *filename, size_t basepath_length) = 0; }; +/** Helper for scanning for files with tar as extension */ +class TarScanner : FileScanner { +public: + /* virtual */ bool AddFile(const char *filename, size_t basepath_length); + + /** Do the scan for Tars. */ + static uint DoScan(); +}; /* Implementation of opendir/readdir/closedir for Windows */ #if defined(WIN32) |