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

Various minor changes and fixes that were not pushed to the repository. Just random stuff.

This commit is contained in:
Sandu Liviu Catalin
2019-01-29 18:44:55 +02:00
parent c516c53bd3
commit 0f0b795ca9
10 changed files with 314 additions and 154 deletions

View File

@@ -1422,7 +1422,7 @@ void Core::EmitClientScriptData(Int32 player_id, const uint8_t * data, size_t si
// Remember the current stack size
const StackGuard sg;
// Create a protected instance of a buffer wrapper
AutoDelete< SqBuffer > ad(new SqBuffer(std::move(b)));
DeleteGuard< SqBuffer > ad(new SqBuffer(std::move(b)));
// Transform the pointer into a script object
PushVar< SqBuffer * >(DefaultVM::Get(), ad.Get());
// The script took over the instance now

View File

@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------------------------------
#include "Areas.hpp"
#include "Misc/Areas.hpp"
// ------------------------------------------------------------------------------------------------
#include <algorithm>

View File

@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------------------------------
#include "Command.hpp"
#include "Misc/Command.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
@@ -161,7 +161,7 @@ Object Manager::Create(StackStrF & name, StackStrF & spec, Array & tags, Uint8 m
// Create the command listener
{
// Create a new instance of this class and make sure it can't get leaked due to exceptions
AutoDelete< Listener > ad(new Listener(name, spec, tags, min, max, auth, prot, assoc));
DeleteGuard< Listener > ad(new Listener(name, spec, tags, min, max, auth, prot, assoc));
// Transform the instance into a script object
obj = Object(ad.Get());
// Validate the obtained script object

View File

@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------------------------------
#include "Routine.hpp"
#include "Misc/Routine.hpp"
#include "Library/Chrono.hpp"
// ------------------------------------------------------------------------------------------------

View File

@@ -1,5 +1,5 @@
// ------------------------------------------------------------------------------------------------
#include "Signal.hpp"
#include "Misc/Signal.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {