From bd6ffaf2267f83028367039a451ad8407220bfd2 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 25 Feb 2024 21:16:39 +0100 Subject: [PATCH] RTech: mark cvars FCVAR_ACCESSIBLE_FROM_THREADS Must be FCVAR_ACCESSIBLE_FROM_THREADS since they are used from different threads. --- src/rtech/async/asyncio.cpp | 4 ++-- src/rtech/pak/pakparse.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rtech/async/asyncio.cpp b/src/rtech/async/asyncio.cpp index 7076d975..0c945233 100644 --- a/src/rtech/async/asyncio.cpp +++ b/src/rtech/async/asyncio.cpp @@ -7,8 +7,8 @@ #include "rtech/pak/paktools.h" #include "asyncio.h" -ConVar async_debug_level("async_debug_level", "0", FCVAR_DEVELOPMENTONLY, "The debug level for async reads", false, 0.f, false, 0.f, "0 = disabled"); -ConVar async_debug_close("async_debug_close", "0", FCVAR_DEVELOPMENTONLY, "Debug async file closing", false, 0.f, false, 0.f, "0 = disabled"); +ConVar async_debug_level("async_debug_level", "0", FCVAR_DEVELOPMENTONLY | FCVAR_ACCESSIBLE_FROM_THREADS, "The debug level for async reads", false, 0.f, false, 0.f, "0 = disabled"); +ConVar async_debug_close("async_debug_close", "0", FCVAR_DEVELOPMENTONLY | FCVAR_ACCESSIBLE_FROM_THREADS, "Debug async file closing", false, 0.f, false, 0.f, "0 = disabled"); //---------------------------------------------------------------------------------- // open a file and add it to the async file handle array diff --git a/src/rtech/pak/pakparse.cpp b/src/rtech/pak/pakparse.cpp index be6437b7..cfad8e3d 100644 --- a/src/rtech/pak/pakparse.cpp +++ b/src/rtech/pak/pakparse.cpp @@ -14,7 +14,7 @@ #include "pakdecode.h" #include "pakstream.h" -static ConVar pak_debugrelations("pak_debugrelations", "0", FCVAR_DEVELOPMENTONLY, "Debug RPAK asset dependency resolving"); +static ConVar pak_debugrelations("pak_debugrelations", "0", FCVAR_DEVELOPMENTONLY | FCVAR_ACCESSIBLE_FROM_THREADS, "Debug RPAK asset dependency resolving"); //----------------------------------------------------------------------------- // resolve the target guid from lookuo table