Skip to main content
Topic: Instantiating global config vars (Read 1891 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Instantiating global config vars

The topic says it all: how do I do it?

There isn't a single example in any of the SDK files, and near as I can tell, it's not as simple as just doing for instance config_var_string::g_set_value(...) on an unused name.

Instantiating global config vars

Reply #1
For a string variable:
Code: [Select]
static config_var_string_i foo("var_name","initial_value");

Use class config_var_int_i for integers.

edit: forgot the semicolon

 
SimplePortal 1.0.0 RC1 © 2008-2019