mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-01-13 23:28:23 +03:00
Initialize m_clientmeta in MConfig constructor and change it to BOOL (#8)
* Initialize m_clientmeta in MConfig constructor and change it to BOOL
This commit is contained in:
parent
8d6d730ed7
commit
ff185130cf
@ -1,6 +1,6 @@
|
||||
#include "precompiled.h"
|
||||
|
||||
MConfig::MConfig() : m_debuglevel(0), m_gamedll(nullptr), m_exec_cfg(nullptr), m_list(nullptr), m_filename(nullptr)
|
||||
MConfig::MConfig() : m_debuglevel(0), m_gamedll(nullptr), m_exec_cfg(nullptr), m_list(nullptr), m_filename(nullptr), m_clientmeta(FALSE)
|
||||
{
|
||||
set_directory();
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
int m_debuglevel; // to use for meta_debug
|
||||
char* m_gamedll; // string if specified in config.ini
|
||||
char* m_exec_cfg; // ie exec.cfg
|
||||
int m_clientmeta;
|
||||
BOOL m_clientmeta;
|
||||
|
||||
private:
|
||||
option_t* m_list;
|
||||
|
@ -9,7 +9,7 @@ option_t g_global_options[] =
|
||||
{ "debuglevel", CF_INT, &g_config->m_debuglevel, "0" },
|
||||
{ "gamedll", CF_PATH, &g_config->m_gamedll, nullptr },
|
||||
{ "exec_cfg", CF_STR, &g_config->m_exec_cfg, nullptr },
|
||||
{ "clientmeta", CF_BOOL, &g_config->m_clientmeta, false },
|
||||
{ "clientmeta", CF_BOOL, &g_config->m_clientmeta, "no" },
|
||||
|
||||
// list terminator
|
||||
{ nullptr, CF_NONE, nullptr, nullptr }
|
||||
|
Loading…
x
Reference in New Issue
Block a user