From 852c3ed52e144ee93484b37f984f91a75b4af89f Mon Sep 17 00:00:00 2001 From: Diavolo Date: Thu, 3 Feb 2022 18:07:00 +0100 Subject: [PATCH] Finish cleen reverse of scrVarPub_t :racehorse: :penguin: --- src/Game/Structs.hpp | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index 8316b064..187cf3f6 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -4925,6 +4925,21 @@ namespace Game int dataCount; } gameState; + struct HunkUser + { + HunkUser* current; + HunkUser* next; + int maxSize; + int end; + int pos; + const char* name; + bool fixed; + int type; + char buf[1]; + }; + + static_assert(sizeof(HunkUser) == 36); + struct VariableStackBuffer { const char *pos; @@ -5027,7 +5042,32 @@ namespace Game bool developer_script; bool evaluate; const char* error_message; - }; // Incomplete + int error_index; + int time; + int timeArrayId; + int pauseArrayId; + int notifyArrayId; + int objectStackId; + int levelId; + int gameId; + int animId; + int freeEntList; + int tempVariable; + int numScriptValues[2]; + bool bInited; + unsigned __int16 savecount; + unsigned __int16 savecountMark; + int checksum; + int entId; + int entFieldName; + HunkUser* programHunkUser; + const char* programBuffer; + const char* endScriptBuffer; + unsigned __int16 saveIdMap[36864]; + unsigned __int16 saveIdMapRev[36864]; + }; + + static_assert(sizeof(scrVarPub_t) == 0x24060); enum UILocalVarType {