Make DvarRegisterEnum accept const char**
This commit is contained in:
parent
b77e95a846
commit
f6c973bc76
@ -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",
|
||||
|
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user