1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +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 TerminateRoutines();
extern void InitializeCmdManager();
extern void TerminateCmdManager();
extern void TerminateCommands();
// ------------------------------------------------------------------------------------------------
extern Buffer GetRealFilePath(CSStr path);
@ -295,8 +294,6 @@ bool Core::Initialize()
// Initialize routines
InitializeRoutines();
// Initialize commands
InitializeCmdManager();
// Initialization successful
return true;
@ -420,8 +417,8 @@ void Core::Terminate()
m_Keybinds.clear();
// Release all resources from routines
TerminateRoutines();
// Release all resources from command manager
TerminateCmdManager();
// Release all resources from command managers
TerminateCommands();
// In case there's a payload for reload
m_ReloadPayload.Release();
// Release null objects in case any reference to valid objects is stored in them