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

Various changes to the modules.

Also commited the remaining incomplete modules.
This commit is contained in:
Sandu Liviu Catalin
2016-05-22 22:34:27 +03:00
parent f2361a27c3
commit 40a2ba46f5
76 changed files with 21289 additions and 98 deletions

View File

@ -94,7 +94,7 @@ void DocumentRef::Validate() const
// ------------------------------------------------------------------------------------------------
SQInteger IniResult::Typename(HSQUIRRELVM vm)
{
static SQChar name[] = _SC("SqIniResult");
static const SQChar name[] = _SC("SqIniResult");
sq_pushstring(vm, name, sizeof(name));
return 1;
}

View File

@ -15,7 +15,7 @@ namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQInteger Document::Typename(HSQUIRRELVM vm)
{
static SQChar name[] = _SC("SqIniDocument");
static const SQChar name[] = _SC("SqIniDocument");
sq_pushstring(vm, name, sizeof(name));
return 1;
}

View File

@ -8,7 +8,7 @@ namespace SqMod {
// ------------------------------------------------------------------------------------------------
SQInteger Entries::Typename(HSQUIRRELVM vm)
{
static SQChar name[] = _SC("SqIniEntries");
static const SQChar name[] = _SC("SqIniEntries");
sq_pushstring(vm, name, sizeof(name));
return 1;
}

View File

@ -96,7 +96,7 @@ void OnSquirrelLoad()
void OnSquirrelTerminate()
{
OutputMessage("Terminating: %s", SQINI_NAME);
// Release the current database (if any)
// Release the current virtual machine, if any
DefaultVM::Set(nullptr);
}