[Sys]: Format code (#658)

This commit is contained in:
Edo 2022-12-19 15:01:37 +01:00 committed by GitHub
parent d8166a4166
commit 02db63cc36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 3 deletions

View File

@ -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<void*>(Game::Sys::ThreadOffset::THREAD_VALUES); \
*thread_data = g_thread_values; \
*(Game::Sys::GetTls<void*>(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); \

View File

@ -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

View File

@ -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 <typename T>