
Public Member Functions | |
| FiosFileScanner (SaveLoadDialogMode mode, fios_getlist_callback_proc *callback_proc) | |
| Create the scanner. | |
| bool | AddFile (const char *filename, size_t basepath_length) |
| Try to add a fios item set with the given filename. | |
Private Attributes | |
| SaveLoadDialogMode | mode |
| The mode we want to search for. | |
| fios_getlist_callback_proc * | callback_proc |
| Callback to check whether the file may be added. | |
Definition at line 186 of file fios.cpp.
| FiosFileScanner::FiosFileScanner | ( | SaveLoadDialogMode | mode, | |
| fios_getlist_callback_proc * | callback_proc | |||
| ) | [inline] |
| bool FiosFileScanner::AddFile | ( | const char * | filename, | |
| size_t | basepath_length | |||
| ) | [virtual] |
Try to add a fios item set with the given filename.
| filename | the full path to the file to read | |
| basepath_length | amount of characters to chop of before to get a relative filename |
Implements FileScanner.
Definition at line 209 of file fios.cpp.
References SmallVector< T, S >::Append(), SmallVector< T, S >::Begin(), callback_proc, SmallVector< T, S >::End(), lastof, mode, OTTD2FS(), str_validate(), strecpy(), and StrEmpty().
1.5.6