aboutsummaryrefslogtreecommitdiff
path: root/primedev/squirrel/squirrel.h
diff options
context:
space:
mode:
Diffstat (limited to 'primedev/squirrel/squirrel.h')
-rw-r--r--primedev/squirrel/squirrel.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/primedev/squirrel/squirrel.h b/primedev/squirrel/squirrel.h
index 0c1f24d3..547b1efc 100644
--- a/primedev/squirrel/squirrel.h
+++ b/primedev/squirrel/squirrel.h
@@ -5,6 +5,8 @@
#include "core/math/vector.h"
#include "mods/modmanager.h"
+namespace fs = std::filesystem;
+
/*
definitions from hell
required to function
@@ -115,6 +117,7 @@ public:
sq_getfunctionType __sq_getfunction;
sq_getentityfrominstanceType __sq_getentityfrominstance;
+ sq_createscriptinstanceType __sq_createscriptinstance;
sq_GetEntityConstantType __sq_GetEntityConstant_CBaseEntity;
sq_pushnewstructinstanceType __sq_pushnewstructinstance;
@@ -136,7 +139,7 @@ public:
inline SQRESULT _call(HSquirrelVM* sqvm, const SQInteger args)
{
- return __sq_call(sqvm, args + 1, false, false);
+ return __sq_call(sqvm, args + 1, false, true);
}
inline SQInteger raiseerror(HSquirrelVM* sqvm, const SQChar* sError)
@@ -447,7 +450,7 @@ inline VoidFunction SQMessageBufferPushArg(Vector3& arg) {
// Vectors
template <ScriptContext context>
inline VoidFunction SQMessageBufferPushArg(SQObject* arg) {
- return [arg]{ g_pSquirrel<context>->pushSQObject(g_pSquirrel<context>->m_pSQVM->sqvm, arg); };
+ return [arg]{ g_pSquirrel<context>->pushobject(g_pSquirrel<context>->m_pSQVM->sqvm, arg); };
}
// Ints
template <ScriptContext context, typename T>