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:
parent
e93319a381
commit
1007eac3ed
1200
source/Command.cpp
1200
source/Command.cpp
File diff suppressed because it is too large
Load Diff
1699
source/Command.hpp
1699
source/Command.hpp
File diff suppressed because it is too large
Load Diff
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user