Fix thread names

This commit is contained in:
fed 2023-04-30 03:40:12 +02:00
parent 076ca7a173
commit 8823e2852e
3 changed files with 14 additions and 9 deletions

View File

@ -66,7 +66,6 @@ namespace imagefiles
void db_create_gfx_image_stream_stub(utils::hook::assembler& a)
{
const auto check_image_file_handle = a.newLabel();
const auto handle_is_open = a.newLabel();
a.movzx(eax, cx);

View File

@ -27,10 +27,13 @@ namespace thread_names
{game::THREAD_CONTEXT_WORKER7, "Worker7"},
{game::THREAD_CONTEXT_SERVER, "Server"},
{game::THREAD_CONTEXT_CINEMATIC, "Cinematic"},
{game::THREAD_CONTEXT_WINDOW, "Window"},
{game::THREAD_CONTEXT_INPUT, "Input"},
{game::THREAD_CONTEXT_DATABASE, "Database"},
{game::THREAD_CONTEXT_STREAM, "Stream"},
{game::THREAD_CONTEXT_SNDSTREAMPACKETCALLBACK, "Snd stream packet callback"},
{game::THREAD_CONTEXT_STATS_WRITE, "Stats write"},
{game::THREAD_CONTEXT_STREAM, "Sound"},
{game::THREAD_CONTEXT_UNK_16, "Thread 16"}, // not used?
{game::THREAD_CONTEXT_UNK_17, "Thread 17"}, // sound stream related
{game::THREAD_CONTEXT_UNK_18, "Thread 18"}, // ^
};
for (const auto& thread_name : thread_names)

View File

@ -589,11 +589,14 @@ namespace game
THREAD_CONTEXT_TRACE_COUNT = 0xB,
THREAD_CONTEXT_TRACE_LAST = 0xA,
THREAD_CONTEXT_CINEMATIC = 0xB,
THREAD_CONTEXT_DATABASE = 0xC,
THREAD_CONTEXT_STREAM = 0xD,
THREAD_CONTEXT_SNDSTREAMPACKETCALLBACK = 0xE,
THREAD_CONTEXT_STATS_WRITE = 0xF,
THREAD_CONTEXT_COUNT = 0x10,
THREAD_CONTEXT_WINDOW = 0xC,
THREAD_CONTEXT_INPUT = 0xD,
THREAD_CONTEXT_DATABASE = 0xE,
THREAD_CONTEXT_STREAM = 0xF,
THREAD_CONTEXT_UNK_16 = 0x10,
THREAD_CONTEXT_UNK_17 = 0x11,
THREAD_CONTEXT_UNK_18 = 0x12,
THREAD_COUNT,
};
struct KeyState