1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-06-30 22:17:13 +02:00

Fix the script loading process and further improve it with multi stage loading of scripts.

This commit is contained in:
Sandu Liviu Catalin
2016-08-19 19:46:26 +03:00
parent e99e6259f7
commit a35b127871
2 changed files with 121 additions and 72 deletions

View File

@ -536,6 +536,7 @@ private:
Int32 m_State; // Current plug-in state.
HSQUIRRELVM m_VM; // Script virtual machine.
Scripts m_Scripts; // Loaded scripts objects.
Scripts m_PendingScripts; // Pending scripts objects.
Options m_Options; // Custom configuration options.
// --------------------------------------------------------------------------------------------
@ -735,6 +736,11 @@ public:
protected:
/* --------------------------------------------------------------------------------------------
* Script execution process.
*/
static bool DoScripts(Scripts::iterator itr, Scripts::iterator end);
/* --------------------------------------------------------------------------------------------
* Script output handlers.
*/