mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
chore(console): clean up calls to CVar::Register
This commit is contained in:
parent
9ed50a0eed
commit
3392c5b427
@ -67,7 +67,7 @@ void ClientMiscInitialize() {
|
|||||||
0,
|
0,
|
||||||
"",
|
"",
|
||||||
nullptr,
|
nullptr,
|
||||||
4,
|
GAME,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
|
|||||||
@ -92,7 +92,7 @@ const char* ClientServices::GetSelectedRealmName() {
|
|||||||
0,
|
0,
|
||||||
"",
|
"",
|
||||||
nullptr,
|
nullptr,
|
||||||
6,
|
NET,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#ifndef CONSOLE_C_VAR_HPP
|
#ifndef CONSOLE_C_VAR_HPP
|
||||||
#define CONSOLE_C_VAR_HPP
|
#define CONSOLE_C_VAR_HPP
|
||||||
|
|
||||||
|
#include "console/Types.hpp"
|
||||||
#include <common/String.hpp>
|
#include <common/String.hpp>
|
||||||
#include <storm/Hash.hpp>
|
#include <storm/Hash.hpp>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
@ -17,7 +18,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
|||||||
static int32_t Load(const char* filename);
|
static int32_t Load(const char* filename);
|
||||||
static CVar* Lookup(const char* name);
|
static CVar* Lookup(const char* name);
|
||||||
static CVar* LookupRegistered(const char* name);
|
static CVar* LookupRegistered(const char* name);
|
||||||
static CVar* Register(const char*, const char*, uint32_t, const char*, bool (*)(CVar*, const char*, const char*, void*), uint32_t, bool, void*, bool);
|
static CVar* Register(const char* name, const char* help, uint32_t flags, const char* value, bool (*fcn)(CVar*, const char*, const char*, void*), uint32_t category, bool a7, void* arg, bool a9);
|
||||||
|
|
||||||
// Member variables
|
// Member variables
|
||||||
uint32_t m_category = 0;
|
uint32_t m_category = 0;
|
||||||
|
|||||||
@ -42,7 +42,7 @@ void RegisterGxCVars() {
|
|||||||
0x0,
|
0x0,
|
||||||
"1",
|
"1",
|
||||||
nullptr,
|
nullptr,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -54,10 +54,10 @@ void RegisterGxCVars() {
|
|||||||
0x1 | 0x2,
|
0x1 | 0x2,
|
||||||
v1 ? "1" : "0",
|
v1 ? "1" : "0",
|
||||||
&CVGxWindowCallback,
|
&CVGxWindowCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
0,
|
false,
|
||||||
0,
|
nullptr,
|
||||||
0
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
s_cvGxMaximize = CVar::Register(
|
s_cvGxMaximize = CVar::Register(
|
||||||
@ -66,10 +66,10 @@ void RegisterGxCVars() {
|
|||||||
0x1 | 0x2,
|
0x1 | 0x2,
|
||||||
v1 ? "1" : "0",
|
v1 ? "1" : "0",
|
||||||
&CVGxMaximizeCallback,
|
&CVGxMaximizeCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
0,
|
false,
|
||||||
0,
|
nullptr,
|
||||||
0
|
false
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO s_cvGxColorBits
|
// TODO s_cvGxColorBits
|
||||||
@ -83,7 +83,7 @@ void RegisterGxCVars() {
|
|||||||
0x1 | 0x2,
|
0x1 | 0x2,
|
||||||
resolution,
|
resolution,
|
||||||
&CVGxResolutionCallback,
|
&CVGxResolutionCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
|
|||||||
@ -149,7 +149,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"1",
|
"1",
|
||||||
nullptr,
|
nullptr,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -161,7 +161,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"1",
|
"1",
|
||||||
nullptr,
|
nullptr,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -173,7 +173,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"1",
|
"1",
|
||||||
nullptr,
|
nullptr,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -185,7 +185,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"1",
|
"1",
|
||||||
BatchDoodadsCallback,
|
BatchDoodadsCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -197,7 +197,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"1",
|
"1",
|
||||||
BatchParticlesCallback,
|
BatchParticlesCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -209,7 +209,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"0",
|
"0",
|
||||||
ForceAdditiveParticleSortCallback,
|
ForceAdditiveParticleSortCallback,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
@ -233,7 +233,7 @@ uint32_t M2RegisterCVars() {
|
|||||||
0,
|
0,
|
||||||
"0",
|
"0",
|
||||||
M2DebugFasterChanged,
|
M2DebugFasterChanged,
|
||||||
1,
|
GRAPHICS,
|
||||||
false,
|
false,
|
||||||
nullptr,
|
nullptr,
|
||||||
false
|
false
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user