[LargeLocal]: CanUseServerLargeLocal

This commit is contained in:
FutureRave 2022-11-25 13:22:42 +00:00
parent 7f96e8ef9a
commit 3a48855698
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 7 additions and 2 deletions

View File

@ -3,8 +3,6 @@
namespace Game::Engine
{
#define CanUseServerLargeLocal() (SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread())
LargeLocal::LargeLocal(int sizeParam)
{
assert(sizeParam);
@ -89,4 +87,9 @@ namespace Game::Engine
return &g_largeLocalBuf[startIndex];
}
int CanUseServerLargeLocal()
{
return SV_GetServerThreadOwnsGame() ? Sys_IsServerThread() : Sys_IsRenderThread();
}
}

View File

@ -26,4 +26,6 @@ namespace Game::Engine
extern void LargeLocalEndRight(int startPos);
extern void* LargeLocalGetBuf(int startPos, int size);
extern int CanUseServerLargeLocal();
}