1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-06 08:57:11 +02:00

Initial implementation of the internal debugging system.

This commit is contained in:
Sandu Liviu Catalin
2015-11-10 14:42:52 +02:00
parent dfc5701799
commit 3da18ee02b
6 changed files with 658 additions and 1 deletions

View File

@ -1,4 +1,5 @@
#include "Core.hpp"
#include "Debug.hpp"
#include "Logger.hpp"
#include "Entity.hpp"
#include "Register.hpp"
@ -391,6 +392,7 @@ bool Core::CreateVM()
DefaultVM::Set(m_VM);
ErrorHandling::Enable(true);
m_Scripts.clear();
_Dbg->SetVM(m_VM);
}
LogDbg("Registering the standard libraries");
@ -439,6 +441,8 @@ void Core::DestroyVM()
m_VM = nullptr;
// Close the Virtual Machine
sq_close(sq_vm);
// Remove it from the debugger as well
_Dbg->SetVM(NULL);
}
}