mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add missing convar flags
Added: - FCVAR_ACCESSIBLE_FROM_THREADS [1<<25] - FCVAR_STUDIO_SYSTEM [1<<26] - FCVAR_SERVER_FRAME_THREAD [1<<27] - FCVAR_PLATFORM_SYSTEM [1<<31] This commit also removes the 'FCVAR_MATERIAL_THREAD_MASK' from the ConVarFlags class (which is a helper struct for displaying flags on the developer console), as this is a mask and would therefore be marked as such in case a single bit in the mask matches, and all these bits are already added to the list.
This commit is contained in:
parent
3531a4c4c6
commit
e8e600f553
@ -48,10 +48,16 @@ class CCommand;
|
||||
#define FCVAR_MATERIAL_SYSTEM_THREAD (1<<23) // Indicates this cvar is read from the material system thread
|
||||
#define FCVAR_ARCHIVE_PLAYERPROFILE (1<<24) // cvar written to config.cfg on the Xbox
|
||||
|
||||
#define FCVAR_SERVER_CAN_EXECUTE (1<<28) // the server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CBaseClientState::ProcessStringCmd.
|
||||
#define FCVAR_ACCESSIBLE_FROM_THREADS (1<<25) // used as a debugging tool necessary to check material system thread convars
|
||||
#define FCVAR_STUDIO_SYSTEM (1<<26) // Seems to be used on studio/datachache cvars (only 'r_rootlod' has this flag)
|
||||
#define FCVAR_SERVER_FRAME_THREAD (1<<27) // Indicates this cvar is read from the server frame thread
|
||||
|
||||
#define FCVAR_SERVER_CAN_EXECUTE (1<<28) // the server is allowed to execute this command on clients via ClientCommand/NET_StringCmd/CClientState::ProcessStringCmd.
|
||||
#define FCVAR_SERVER_CANNOT_QUERY (1<<29) // If this is set, then the server is not allowed to query this cvar's value (via IServerPluginHelpers::StartQueryCvarValue).
|
||||
#define FCVAR_CLIENTCMD_CAN_EXECUTE (1<<30) // IVEngineClient::ClientCmd is allowed to execute this command.
|
||||
|
||||
#define FCVAR_PLATFORM_SYSTEM (1<<31) // Platform cvars, such as persona details and tokens/unique identifiers
|
||||
|
||||
#define FCVAR_MATERIAL_THREAD_MASK ( FCVAR_RELOAD_MATERIALS | FCVAR_RELOAD_TEXTURES | FCVAR_MATERIAL_SYSTEM_THREAD )
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -282,7 +282,7 @@ public:
|
||||
};
|
||||
|
||||
CUtlMap<const char*, int> m_StringToFlags;
|
||||
FlagDesc_t m_FlagsToDesc[30];
|
||||
FlagDesc_t m_FlagsToDesc[33];
|
||||
int m_Count;
|
||||
};
|
||||
|
||||
|
@ -426,12 +426,15 @@ ConVarFlags::ConVarFlags() : m_StringToFlags(DefLessFunc(const char*))
|
||||
SET_CONVARFLAG(RELOAD_MATERIALS, "reload_materials");
|
||||
SET_CONVARFLAG(RELOAD_TEXTURES, "reload_textures");
|
||||
SET_CONVARFLAG(NOT_CONNECTED, "not_connected");
|
||||
SET_CONVARFLAG(MATERIAL_SYSTEM_THREAD, "materialsystem_thread");
|
||||
SET_CONVARFLAG(MATERIAL_THREAD_MASK, "material_thread_mask");
|
||||
SET_CONVARFLAG(MATERIAL_SYSTEM_THREAD, "material_system_thread");
|
||||
SET_CONVARFLAG(ARCHIVE_PLAYERPROFILE, "playerprofile");
|
||||
SET_CONVARFLAG(ACCESSIBLE_FROM_THREADS, "accessible_from_threads");
|
||||
SET_CONVARFLAG(STUDIO_SYSTEM, "studio_system");
|
||||
SET_CONVARFLAG(SERVER_FRAME_THREAD, "server_frame_thread");
|
||||
SET_CONVARFLAG(SERVER_CAN_EXECUTE, "server_can_execute");
|
||||
SET_CONVARFLAG(SERVER_CANNOT_QUERY, "server_cannot_query");
|
||||
SET_CONVARFLAG(CLIENTCMD_CAN_EXECUTE, "clientcmd_can_execute");
|
||||
SET_CONVARFLAG(PLATFORM_SYSTEM, "platform_system");
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user