1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2026-07-09 01:57:09 +02:00

Prepare the script container for the revised script loading system.

This commit is contained in:
Sandu Liviu Catalin
2016-06-18 20:29:28 +03:00
parent c8d5200dc0
commit b59710ddeb
2 changed files with 26 additions and 11 deletions
+13 -2
View File
@@ -29,6 +29,8 @@ public:
String mPath; // Path to the script file.
String mData; // The contents of the script file.
Line mLine; // List of lines of code in the data.
bool mInfo; // Whether this script contains line information.
bool mDelay; // Don't execute immediately after compilation.
/* --------------------------------------------------------------------------------------------
* Read file contents and calculate information about the lines of code.
@@ -36,9 +38,18 @@ public:
void Process();
/* --------------------------------------------------------------------------------------------
* Default constructor.
* Base constructor.
*/
ScriptSrc(HSQUIRRELVM vm, const String & path, bool info = false);
ScriptSrc(HSQUIRRELVM vm, const String & path, bool delay = false, bool info = false)
: ScriptSrc(vm, String(path), delay, info)
{
/* ... */
}
/* --------------------------------------------------------------------------------------------
* Base constructor.
*/
ScriptSrc(HSQUIRRELVM vm, String && path, bool delay = false, bool info = false);
/* --------------------------------------------------------------------------------------------
* Copy constructor.