mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-15 22:57:12 +02:00
Various changes to the modules.
Also commited the remaining incomplete modules.
This commit is contained in:
@ -11,7 +11,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Attribute::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqXmlAttribute");
|
||||
static const SQChar name[] = _SC("SqXmlAttribute");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Document::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqXmlDocument");
|
||||
static const SQChar name[] = _SC("SqXmlDocument");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
@ -98,7 +98,7 @@ void OnSquirrelLoad()
|
||||
void OnSquirrelTerminate()
|
||||
{
|
||||
OutputMessage("Terminating: %s", SQXML_NAME);
|
||||
// Release the current database (if any)
|
||||
// Release the current virtual machine, if any
|
||||
DefaultVM::Set(nullptr);
|
||||
}
|
||||
|
||||
|
@ -10,7 +10,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Node::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqXmlNode");
|
||||
static const SQChar name[] = _SC("SqXmlNode");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ namespace SqMod {
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
SQInteger Text::Typename(HSQUIRRELVM vm)
|
||||
{
|
||||
static SQChar name[] = _SC("SqXmlText");
|
||||
static const SQChar name[] = _SC("SqXmlText");
|
||||
sq_pushstring(vm, name, sizeof(name));
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user