[Functions] Optimize parse session functions

This commit is contained in:
momo5502 2016-12-08 19:47:23 +01:00
parent 81d94cbd5e
commit 3e0beecdf5
2 changed files with 7 additions and 7 deletions

View File

@ -615,23 +615,23 @@ namespace Game
}
}
void* Com_GetParseThreadInfo()
char* Com_GetParseThreadInfo()
{
if (Game::Sys_IsMainThread())
{
return reinterpret_cast<void*>(0x6466628);
return reinterpret_cast<char*>(0x6466628);
}
else if (Game::Sys_IsRenderThread())
{
return reinterpret_cast<void*>(0x646AC34);
return reinterpret_cast<char*>(0x646AC34);
}
else if (Game::Sys_IsServerThread())
{
return reinterpret_cast<void*>(0x646F240);
return reinterpret_cast<char*>(0x646F240);
}
else if(Game::Sys_IsDatabaseThread())
{
return reinterpret_cast<void*>(0x647384C);
return reinterpret_cast<char*>(0x647384C);
}
else
{
@ -641,7 +641,7 @@ namespace Game
void Com_SetParseNegativeNumbers(int parse)
{
char* g_parse = reinterpret_cast<char*>(Com_GetParseThreadInfo());
char* g_parse = Com_GetParseThreadInfo();
if (g_parse)
{

View File

@ -684,6 +684,6 @@ namespace Game
void Load_IndexBuffer(void* data, IDirect3DIndexBuffer9** storeHere, int count);
void Load_VertexBuffer(void* data, IDirect3DVertexBuffer9** where, int len);
void* Com_GetParseThreadInfo();
char* Com_GetParseThreadInfo();
void Com_SetParseNegativeNumbers(int parse);
}