mirror of
https://github.com/rehlds/metamod-r.git
synced 2025-04-18 15:22:28 +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"
|
#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();
|
set_directory();
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ public:
|
|||||||
int m_debuglevel; // to use for meta_debug
|
int m_debuglevel; // to use for meta_debug
|
||||||
char* m_gamedll; // string if specified in config.ini
|
char* m_gamedll; // string if specified in config.ini
|
||||||
char* m_exec_cfg; // ie exec.cfg
|
char* m_exec_cfg; // ie exec.cfg
|
||||||
int m_clientmeta;
|
BOOL m_clientmeta;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
option_t* m_list;
|
option_t* m_list;
|
||||||
|
@ -9,7 +9,7 @@ option_t g_global_options[] =
|
|||||||
{ "debuglevel", CF_INT, &g_config->m_debuglevel, "0" },
|
{ "debuglevel", CF_INT, &g_config->m_debuglevel, "0" },
|
||||||
{ "gamedll", CF_PATH, &g_config->m_gamedll, nullptr },
|
{ "gamedll", CF_PATH, &g_config->m_gamedll, nullptr },
|
||||||
{ "exec_cfg", CF_STR, &g_config->m_exec_cfg, 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
|
// list terminator
|
||||||
{ nullptr, CF_NONE, nullptr, nullptr }
|
{ nullptr, CF_NONE, nullptr, nullptr }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user