mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-01 16:22:45 +03:00
fix(console): use correct return type for CVar::Load
This commit is contained in:
parent
1d9cb65579
commit
87361e5c6c
@ -22,8 +22,9 @@ void CVar::Initialize() {
|
||||
ConsoleCommandRegister("cvarlist", CVarListCommandHandler, DEFAULT, "List cvars");
|
||||
}
|
||||
|
||||
void CVar::Load(const char* filename) {
|
||||
int32_t CVar::Load(const char* filename) {
|
||||
// TODO
|
||||
return 0;
|
||||
}
|
||||
|
||||
CVar* CVar::Lookup(const char* name) {
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
#ifndef CONSOLE_C_VAR_HPP
|
||||
#define CONSOLE_C_VAR_HPP
|
||||
|
||||
#include <cstdint>
|
||||
#include <common/String.hpp>
|
||||
#include <storm/Hash.hpp>
|
||||
#include <cstdint>
|
||||
|
||||
class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
public:
|
||||
@ -14,7 +14,7 @@ class CVar : public TSHashObject<CVar, HASHKEY_STRI> {
|
||||
|
||||
// Static functions
|
||||
static void Initialize();
|
||||
static void Load(const char* filename);
|
||||
static int32_t Load(const char* filename);
|
||||
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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user