(svn r22904) -Codechange: add tar filename to file scanning

This commit is contained in:
rubidium
2011-09-08 09:48:52 +00:00
parent 92244f1663
commit 414c397000
9 changed files with 27 additions and 17 deletions

View File

@@ -30,11 +30,17 @@ public:
*/
const char *GetMainScript() { return this->main_script; }
/* virtual */ bool AddFile(const char *filename, size_t basepath_length);
/**
* Get the current tar file the ScanDir is currently tracking.
*/
const char *GetTarFile() { return this->tar_file; }
/* virtual */ bool AddFile(const char *filename, size_t basepath_length, const char *tar_filename);
protected:
class Squirrel *engine; ///< The engine we're scanning with.
char *main_script; ///< The name of the current main script.
char *tar_file; ///< The filename of the tar for the main script.
};
#endif /* SCRIPT_SCANNER_HPP */