summaryrefslogtreecommitdiff
path: root/src/script/squirrel.hpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-05-25 19:53:46 +0000
committerrubidium <rubidium@openttd.org>2014-05-25 19:53:46 +0000
commita6b4e59963561cefde5660c2ded9bd0b2801f2fc (patch)
tree02a3f5bca144d9046d265c3c371be385096dcb97 /src/script/squirrel.hpp
parent105306609f967fbaf8342d1fb799a98d439a1a8f (diff)
downloadopenttd-a6b4e59963561cefde5660c2ded9bd0b2801f2fc.tar.xz
(svn r26617) -Fix [FS#5973]: [Script] Loading/parsing of info .nuts was done in the same VM, causing e.g. constants to break the loading of info of other scripts
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r--src/script/squirrel.hpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp
index 4e31d3247..4fdde85a1 100644
--- a/src/script/squirrel.hpp
+++ b/src/script/squirrel.hpp
@@ -41,6 +41,11 @@ private:
*/
const char *GetAPIName() { return this->APIName; }
+ /** Perform all initialization steps to create the engine. */
+ void Initialize();
+ /** Perform all the cleanups for the engine. */
+ void Uninitialize();
+
protected:
/**
* The CompileError handler.
@@ -249,11 +254,6 @@ public:
bool HasScriptCrashed();
/**
- * Reset the crashed status.
- */
- void ResetCrashed();
-
- /**
* Set the script status to crashed.
*/
void CrashOccurred();
@@ -267,6 +267,11 @@ public:
* How many operations can we execute till suspension?
*/
SQInteger GetOpsTillSuspend();
+
+ /**
+ * Completely reset the engine; start from scratch.
+ */
+ void Reset();
};
#endif /* SQUIRREL_HPP */