From 02db63cc3667f36d77f5570a659ee067d054cb3a Mon Sep 17 00:00:00 2001 From: Edo Date: Mon, 19 Dec 2022 15:01:37 +0100 Subject: [PATCH] [Sys]: Format code (#658) --- src/Game/Common.hpp | 4 +--- src/Game/Structs.hpp | 8 ++++++++ src/Game/System.hpp | 3 +++ 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/Game/Common.hpp b/src/Game/Common.hpp index 9eede34d..85f296bd 100644 --- a/src/Game/Common.hpp +++ b/src/Game/Common.hpp @@ -84,9 +84,7 @@ namespace Game static jmp_buf g_com_error{}; \ static Game::TraceThreadInfo g_trace_thread_info{}; \ static void* g_thread_values[Game::THREAD_VALUE_COUNT]{}; \ - auto** thread_data = \ - Game::Sys::GetTls(Game::Sys::ThreadOffset::THREAD_VALUES); \ - *thread_data = g_thread_values; \ + *(Game::Sys::GetTls(Game::Sys::THREAD_VALUES)) = g_thread_values; \ Game::Sys_SetValue(Game::THREAD_VALUE_PROF_STACK, &profile_stack); \ Game::Sys_SetValue(Game::THREAD_VALUE_VA, &va_info); \ Game::Sys_SetValue(Game::THREAD_VALUE_COM_ERROR, &g_com_error); \ diff --git a/src/Game/Structs.hpp b/src/Game/Structs.hpp index ce0f3345..ad90dd6b 100644 --- a/src/Game/Structs.hpp +++ b/src/Game/Structs.hpp @@ -10386,6 +10386,14 @@ namespace Game static_assert(sizeof(bgs_t) == 0x82950); + struct ZipInfo + { + int offsetCount; + int offsets[128]; + int size; + char* buffer; + }; + #pragma endregion #ifndef IDA diff --git a/src/Game/System.hpp b/src/Game/System.hpp index c6cbdbdd..db6ce89f 100644 --- a/src/Game/System.hpp +++ b/src/Game/System.hpp @@ -78,7 +78,10 @@ namespace Game { LEVEL_BGS = 0xC, THREAD_VALUES = 0x14, + HUFFMAN_BLOC = 0x10, + DVAR_ALLOWED_MODIFIED_FLAGS = 0x1C, DVAR_MODIFIED_FLAGS = 0x18, + ZIP_INFO = 0x20, }; template