diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2022-12-01 20:25:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 21:25:12 +0100 |
commit | 891c2afe222930d9bd5a0edb6471c9f7d8da2d42 (patch) | |
tree | 9ed195cfcd8c048cacee8a26b52c10f4872e7dba /Northstar.Client/mod/scripts/vscripts | |
parent | 4730389c3bc0e750eab2ecdc3fd9a781f70e12a3 (diff) | |
download | NorthstarMods-891c2afe222930d9bd5a0edb6471c9f7d8da2d42.tar.gz NorthstarMods-891c2afe222930d9bd5a0edb6471c9f7d8da2d42.zip |
Remove unnecessary root table setting and make functions global (#534)
* fix for CHudChat_ProcessMessageStartThread not working in native
* remove unneeded NSSetupChathooksClient callback
* fix for CServerGameDLL_ProcessMessageStartThread not working in native
* remove unneeded NSSetupChathooksServer callback
* remove root table setting for ServerToClientStringCommands_Init
* remove unneeded ServerToClientStringCommands_Init callback
* remove global function
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut index 3caf4336..811874c5 100644 --- a/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut +++ b/Northstar.Client/mod/scripts/vscripts/_custom_codecallbacks_client.gnut @@ -1,7 +1,10 @@ untyped global function AddCallback_OnReceivedSayTextMessage -global function NSSetupChathooksClient + +// this is global due to squirrel bridge v3 making native not be able to find non-global funcs properly +// temp fix (surely it will get replaced), do not use this function please (although there isnt rly a downside to it?) +global function CHudChat_ProcessMessageStartThread global struct ClClient_MessageStruct { string message @@ -135,7 +138,3 @@ void function AddCallback_OnReceivedSayTextMessage( ClClient_MessageStruct funct { NsCustomCallbacksClient.OnReceivedSayTextMessageCallbacks.append(callbackFunc) } - -void function NSSetupChathooksClient() { - getroottable().rawset("CHudChat_ProcessMessageStartThread", CHudChat_ProcessMessageStartThread) -} |