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:
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user