Scanner to help finding scripts. More...
#include <script_scanner.hpp>
Public Member Functions | |
class Squirrel * | GetEngine () |
Get the engine of the main squirrel handler (it indexes all available scripts). | |
const char * | GetMainScript () |
Get the current main script the ScanDir is currently tracking. | |
void | ScanScriptDir (const char *info_file_name, Subdirectory search_dir) |
Rescan for scripts. | |
Protected Attributes | |
class Squirrel * | engine |
The engine we're scanning with. | |
char | main_script [1024] |
The name of the current main script. | |
Private Member Functions | |
void | ScanDir (const char *dirname, const char *info_file_name) |
Scan a dir for scripts. |
Scanner to help finding scripts.
Definition at line 18 of file script_scanner.hpp.
void ScriptScanner::ScanScriptDir | ( | const char * | info_file_name, | |
Subdirectory | search_dir | |||
) |
Rescan for scripts.
info_file_name | The name of the 'info.nut' file. | |
search_dir | The subdirecotry to search for scripts. |
Definition at line 84 of file script_scanner.cpp.
References FileExists(), FOR_ALL_SEARCHPATHS, and ScanDir().
Referenced by AIScanner::RescanAIDir().