summaryrefslogtreecommitdiff
path: root/src/script/script_info.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-09-08 09:55:04 +0000
committerrubidium <rubidium@openttd.org>2011-09-08 09:55:04 +0000
commit62777dbd84f380b701e7be8b6aac86af9a511de4 (patch)
tree698bb9ce6358115bbd58f5796f47e21daa19d87a /src/script/script_info.hpp
parent414c397000935162df4641dbe0c056b39d32205e (diff)
downloadopenttd-62777dbd84f380b701e7be8b6aac86af9a511de4.tar.xz
(svn r22905) -Fix [FS#4753] (r22836): the name of the tar was removed from the AI filenames, so record it differently. Also removes some of the hackery to get the tar's filename
Diffstat (limited to 'src/script/script_info.hpp')
-rw-r--r--src/script/script_info.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/script/script_info.hpp b/src/script/script_info.hpp
index 69af93768..ad30bf756 100644
--- a/src/script/script_info.hpp
+++ b/src/script/script_info.hpp
@@ -20,6 +20,7 @@ public:
ScriptFileInfo() :
SQ_instance(NULL),
main_script(NULL),
+ tar_file(NULL),
author(NULL),
name(NULL),
short_name(NULL),
@@ -77,6 +78,11 @@ public:
const char *GetMainScript() const { return this->main_script; }
/**
+ * Get the filename of the tar the script is in.
+ */
+ const char *GetTarFile() const { return this->tar_file; }
+
+ /**
* Check if a given method exists.
*/
bool CheckMethod(const char *name) const;
@@ -91,6 +97,7 @@ protected:
HSQOBJECT *SQ_instance;
private:
char *main_script;
+ char *tar_file;
const char *author;
const char *name;
const char *short_name;