mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 00:02: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,
|
||||
"",
|
||||
nullptr,
|
||||
4,
|
||||
GAME,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
|
||||
@ -92,7 +92,7 @@ const char* ClientServices::GetSelectedRealmName() {
|
||||
0,
|
||||
"",
|
||||
nullptr,
|
||||
6,
|
||||
NET,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#ifndef CONSOLE_C_VAR_HPP
|
||||
#define CONSOLE_C_VAR_HPP
|
||||
|
||||
#include "console/Types.hpp"
|
||||
#include <common/String.hpp>
|
||||
#include <storm/Hash.hpp>
|
||||
#include <cstdint>
|
||||
@ -17,7 +18,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
static int32_t Load(const char* filename);
|
||||
static CVar* Lookup(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
|
||||
uint32_t m_category = 0;
|
||||
|
||||
@ -42,7 +42,7 @@ void RegisterGxCVars() {
|
||||
0x0,
|
||||
"1",
|
||||
nullptr,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -54,10 +54,10 @@ void RegisterGxCVars() {
|
||||
0x1 | 0x2,
|
||||
v1 ? "1" : "0",
|
||||
&CVGxWindowCallback,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
);
|
||||
|
||||
s_cvGxMaximize = CVar::Register(
|
||||
@ -66,10 +66,10 @@ void RegisterGxCVars() {
|
||||
0x1 | 0x2,
|
||||
v1 ? "1" : "0",
|
||||
&CVGxMaximizeCallback,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
);
|
||||
|
||||
// TODO s_cvGxColorBits
|
||||
@ -83,7 +83,7 @@ void RegisterGxCVars() {
|
||||
0x1 | 0x2,
|
||||
resolution,
|
||||
&CVGxResolutionCallback,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
|
||||
@ -149,7 +149,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"1",
|
||||
nullptr,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -161,7 +161,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"1",
|
||||
nullptr,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -173,7 +173,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"1",
|
||||
nullptr,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -185,7 +185,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"1",
|
||||
BatchDoodadsCallback,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -197,7 +197,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"1",
|
||||
BatchParticlesCallback,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -209,7 +209,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"0",
|
||||
ForceAdditiveParticleSortCallback,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
@ -233,7 +233,7 @@ uint32_t M2RegisterCVars() {
|
||||
0,
|
||||
"0",
|
||||
M2DebugFasterChanged,
|
||||
1,
|
||||
GRAPHICS,
|
||||
false,
|
||||
nullptr,
|
||||
false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user