Fix bugs related to variable getting and settingfunctions.

Add unit test functions fpr GSC builtins.
This commit is contained in:
JezuzLizard
2023-03-25 00:29:50 -07:00
parent b861f5cc56
commit ffdf2c48ba
6 changed files with 177 additions and 35 deletions

View File

@ -10,14 +10,16 @@ namespace game
WEAK symbol<dvar_s*(const char* name, dvarType_t type, DvarFlags flags, DvarValue dval, DvarLimits dom, const char* desc)> Dvar_RegisterVariant{ 0x0, 0x5EED90 };
WEAK symbol<void(scriptInstance_t inst)> Scr_AddArray { 0x0, 0x69AA50 };
WEAK symbol<int(scriptInstance_t inst, char* string, int user, unsigned int len)> SL_GetStringOfSize { 0x0, 0x68DE50 };
WEAK symbol<unsigned int(scriptInstance_t inst, char* string, int user, unsigned int len)> SL_GetStringOfSize { 0x0, 0x68DE50 };
// Variables
WEAK symbol<cmd_function_s*> cmd_functions{ 0x0, 0x1F416F4 };
WEAK symbol<CmdArgs> cmd_args{ 0x0, 0x1F41670 };
WEAK symbol<GameWorldSp*> gameWorldCurrent{0x0, 0x8E1D80 };
WEAK symbol<GameWorldSp*> gameWorldCurrent{ 0x0, 0x8E1D80 };
WEAK symbol<gentity_s> g_entities{ 0x0, 0x176C6F0 };
namespace plutonium
{