Public Member Functions | |
| void | Initialize () |
| class GameInfo * | FindInfo (const char *nameParam, int versionParam, bool force_exact_match) |
| Check if we have a game by name and version available in our list. | |
Protected Member Functions | |
| void | GetScriptName (ScriptInfo *info, char *name, int len) |
| Get the script name how to store the script in memory. | |
| const char * | GetFileName () const |
| Get the filename to scan for this type of script. | |
| Subdirectory | GetDirectory () const |
| Get the directory to scan in. | |
| const char * | GetScannerName () const |
| Get the type of the script, in plural. | |
| void | RegisterAPI (class Squirrel *engine) |
| Register the API for this ScriptInfo. | |
Definition at line 17 of file game_scanner.hpp.
| GameInfo * GameScannerInfo::FindInfo | ( | const char * | nameParam, | |
| int | versionParam, | |||
| bool | force_exact_match | |||
| ) |
Check if we have a game by name and version available in our list.
| nameParam | The name of the game script. | |
| versionParam | The versionof the game script, or -1 if you want the latest. | |
| force_exact_match | Only match name+version, never latest. |
Definition at line 34 of file game_scanner.cpp.
References GameInfo::CanLoadFromVersion(), ScriptInfo::GetName(), ScriptInfo::GetVersion(), ScriptScanner::info_list, ScriptScanner::info_single_list, strtolower(), and ttd_strlcpy().
Referenced by Game::FindInfo().
1.7.1