1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-01-31 18:07:14 +01:00

Initial implementation of the new command system.

This commit is contained in:
Sandu Liviu Catalin 2016-07-03 03:22:00 +03:00
parent e93319a381
commit 1007eac3ed
3 changed files with 1551 additions and 1357 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -35,8 +35,7 @@ extern bool RegisterAPI(HSQUIRRELVM vm);
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
extern void InitializeRoutines(); extern void InitializeRoutines();
extern void TerminateRoutines(); extern void TerminateRoutines();
extern void InitializeCmdManager(); extern void TerminateCommands();
extern void TerminateCmdManager();
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
extern Buffer GetRealFilePath(CSStr path); extern Buffer GetRealFilePath(CSStr path);
@ -295,8 +294,6 @@ bool Core::Initialize()
// Initialize routines // Initialize routines
InitializeRoutines(); InitializeRoutines();
// Initialize commands
InitializeCmdManager();
// Initialization successful // Initialization successful
return true; return true;
@ -420,8 +417,8 @@ void Core::Terminate()
m_Keybinds.clear(); m_Keybinds.clear();
// Release all resources from routines // Release all resources from routines
TerminateRoutines(); TerminateRoutines();
// Release all resources from command manager // Release all resources from command managers
TerminateCmdManager(); TerminateCommands();
// In case there's a payload for reload // In case there's a payload for reload
m_ReloadPayload.Release(); m_ReloadPayload.Release();
// Release null objects in case any reference to valid objects is stored in them // Release null objects in case any reference to valid objects is stored in them