Make DvarRegisterEnum accept const char**

This commit is contained in:
FutureRave 2021-11-11 16:47:42 +00:00
parent b77e95a846
commit f6c973bc76
No known key found for this signature in database
GPG Key ID: E883E2BC9657D955
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ namespace Components
Game::dvar_t* QuickPatch::Dvar_RegisterAspectRatioDvar(const char* name, char**, int defaultVal, int flags, const char* description)
{
static char* r_aspectRatioEnum[] =
static const char* r_aspectRatioEnum[] =
{
"auto",
"standard",

View File

@ -247,7 +247,7 @@ namespace Game
typedef dvar_t* (__cdecl * Dvar_RegisterInt_t)(const char* name, int defaultVal, int min, int max, int flags, const char* description);
extern Dvar_RegisterInt_t Dvar_RegisterInt;
typedef dvar_t* (__cdecl * Dvar_RegisterEnum_t)(const char* name, char** enumValues, int defaultVal, int flags, const char* description);
typedef dvar_t* (__cdecl * Dvar_RegisterEnum_t)(const char* name, const char** enumValues, int defaultVal, int flags, const char* description);
extern Dvar_RegisterEnum_t Dvar_RegisterEnum;
typedef dvar_t* (__cdecl * Dvar_RegisterString_t)(const char* name, const char* defaultVal, int, const char*);