mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-22 05:55:03 +03:00
fix(console): use correct return type for CVar::Load
This commit is contained in:
2 files changed
+4
-3
No files matched your search
@@ -22,8 +22,9 @@ void CVar::Initialize() {
|
|||||||
ConsoleCommandRegister("cvarlist", CVarListCommandHandler, DEFAULT, "List cvars");
|
ConsoleCommandRegister("cvarlist", CVarListCommandHandler, DEFAULT, "List cvars");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CVar::Load(const char* filename) {
|
int32_t CVar::Load(const char* filename) {
|
||||||
// TODO
|
// TODO
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CVar* CVar::Lookup(const char* name) {
|
CVar* CVar::Lookup(const char* name) {
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#ifndef CONSOLE_C_VAR_HPP
|
#ifndef CONSOLE_C_VAR_HPP
|
||||||
#define CONSOLE_C_VAR_HPP
|
#define CONSOLE_C_VAR_HPP
|
||||||
|
|
||||||
#include <cstdint>
|
|
||||||
#include <common/String.hpp>
|
#include <common/String.hpp>
|
||||||
#include <storm/Hash.hpp>
|
#include <storm/Hash.hpp>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||||
public:
|
public:
|
||||||
@@ -14,7 +14,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
|||||||
|
|
||||||
// Static functions
|
// Static functions
|
||||||
static void Initialize();
|
static void Initialize();
|
||||||
static void 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* 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*, const char*, uint32_t, const char*, bool (*)(CVar*, const char*, const char*, void*), uint32_t, bool, void*, bool);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user