mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-11-15 00:07:08 +01:00
Fix issue with modules not registering their API.
This commit is contained in:
1 parent
66d1110733
commit
9874bbe1dc
7 files changed
+31
-30
No files matched your search
@@ -27,16 +27,16 @@ static bool RegisterAPI()
|
||||
return false;
|
||||
}
|
||||
|
||||
Table jns;
|
||||
Table jns(DefaultVM::Get());
|
||||
|
||||
Register_Common(jns);
|
||||
Register_JArray(jns);
|
||||
Register_JObject(jns);
|
||||
Register_JValue(jns);
|
||||
|
||||
RootTable().Bind(_SC("SqJSON"), jns);
|
||||
RootTable(DefaultVM::Get()).Bind(_SC("SqJSON"), jns);
|
||||
|
||||
Sqrat::ConstTable()
|
||||
Sqrat::ConstTable(DefaultVM::Get())
|
||||
.Const(_SC("JSON_OBJECT"), JSON_OBJECT)
|
||||
.Const(_SC("JSON_ARRAY"), JSON_ARRAY)
|
||||
.Const(_SC("JSON_STRING"), JSON_STRING)
|
||||
|
||||
Reference in new issue
Block a user