aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/clientchathooks.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 03:48:14 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-05-09 03:48:14 +0100
commit037113d4b8032cd3715d879c2f4b08f66fa2be43 (patch)
treecf294f53b28ebb207e497877c8ee3fce39dd5e10 /NorthstarDedicatedTest/clientchathooks.cpp
parent9ab7c43c34183915273cc8b5ccedd72568249b27 (diff)
downloadNorthstarLauncher-037113d4b8032cd3715d879c2f4b08f66fa2be43.tar.gz
NorthstarLauncher-037113d4b8032cd3715d879c2f4b08f66fa2be43.zip
move sqvm funcs to sq managers
Diffstat (limited to 'NorthstarDedicatedTest/clientchathooks.cpp')
-rw-r--r--NorthstarDedicatedTest/clientchathooks.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDedicatedTest/clientchathooks.cpp b/NorthstarDedicatedTest/clientchathooks.cpp
index ef40c634..b6cf56ac 100644
--- a/NorthstarDedicatedTest/clientchathooks.cpp
+++ b/NorthstarDedicatedTest/clientchathooks.cpp
@@ -58,8 +58,8 @@ static void CHudChat__AddGameLineHook(void* self, const char* message, int inbox
// void NSChatWrite( int context, string str )
static SQRESULT SQ_ChatWrite(void* sqvm)
{
- int context = ClientSq_getinteger(sqvm, 1);
- const char* str = ClientSq_getstring(sqvm, 2);
+ int context = g_ClientSquirrelManager->sq_getinteger(sqvm, 1);
+ const char* str = g_ClientSquirrelManager->sq_getstring(sqvm, 2);
LocalChatWriter((LocalChatWriter::Context)context).Write(str);
return SQRESULT_NOTNULL;
@@ -68,8 +68,8 @@ static SQRESULT SQ_ChatWrite(void* sqvm)
// void NSChatWriteRaw( int context, string str )
static SQRESULT SQ_ChatWriteRaw(void* sqvm)
{
- int context = ClientSq_getinteger(sqvm, 1);
- const char* str = ClientSq_getstring(sqvm, 2);
+ int context = g_ClientSquirrelManager->sq_getinteger(sqvm, 1);
+ const char* str = g_ClientSquirrelManager->sq_getstring(sqvm, 2);
LocalChatWriter((LocalChatWriter::Context)context).InsertText(str);
return SQRESULT_NOTNULL;
@@ -78,8 +78,8 @@ static SQRESULT SQ_ChatWriteRaw(void* sqvm)
// void NSChatWriteLine( int context, string str )
static SQRESULT SQ_ChatWriteLine(void* sqvm)
{
- int context = ClientSq_getinteger(sqvm, 1);
- const char* str = ClientSq_getstring(sqvm, 2);
+ int context = g_ClientSquirrelManager->sq_getinteger(sqvm, 1);
+ const char* str = g_ClientSquirrelManager->sq_getstring(sqvm, 2);
LocalChatWriter((LocalChatWriter::Context)context).WriteLine(str);
return SQRESULT_NOTNULL;