(svn r16093) -Feature [FS#2808]: Add GetURL() as possible function to info.nut. If AIs implement it, that url is shown when the AI crashes and also in the AI selection window.
This commit is contained in:
@@ -17,7 +17,8 @@ public:
|
||||
short_name(NULL),
|
||||
description(NULL),
|
||||
date(NULL),
|
||||
instance_name(NULL)
|
||||
instance_name(NULL),
|
||||
url(NULL)
|
||||
{}
|
||||
~ScriptFileInfo();
|
||||
|
||||
@@ -56,6 +57,11 @@ public:
|
||||
*/
|
||||
const char *GetInstanceName() const { return this->instance_name; }
|
||||
|
||||
/**
|
||||
* Get the website for this script.
|
||||
*/
|
||||
const char *GetURL() const { return this->url; }
|
||||
|
||||
/**
|
||||
* Get the filename of the main.nut script.
|
||||
*/
|
||||
@@ -83,6 +89,7 @@ private:
|
||||
const char *date;
|
||||
const char *instance_name;
|
||||
int version;
|
||||
const char *url;
|
||||
};
|
||||
|
||||
#endif /* SCRIPT_INFO */
|
||||
|
Reference in New Issue
Block a user