1 (edited by GreenReaper 2014-04-20 18:33:41)

Topic: [SOLVED-QUESTION] g_Config

Hi all,

SOLVED (underneath)

it's my first time working on the source code and I want to add a new filter for the serverbrowser,
I defined the "output-conditions" and added the button (non-tested).

I'm a bit confused about the module "g_Config" it's used for most variables and is (I think) a variable collection, but where is it defined? Or how is it defined? I can't find any file named g_Config or other Settings/Variable files including the defined variables in g_Config.

I hope it's the correct Section and my Question isn't answered in another Thread (haven't found any)  ..

Thanks,

GreenReaper

         

Solution

The variables of g_Config are defined in "\src\engine\shared\config_variables.h":
For example: g_Config.m_BrFilterPureMap is defined this way:
MACRO_CONFIG_INT(BrFilterPureMap, br_filter_pure_map, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Filter out non-standard maps in browser")

Maybe not the best explanation, but if someone has the same question it's better than nothing.


#Closerequest

2

Re: [SOLVED-QUESTION] g_Config

Thanks for the info, closing as requested.