18 #include "precompiled.h"
112 float musicGain = 0.5f;
113 float ambientGain = 0.5f;
114 float actionGain = 0.5f;
119 CFG_GET_VAL(
"sound.ambientgain", Float, ambientGain);
120 CFG_GET_VAL(
"sound.actiongain", Float, actionGain);
137 LOGERROR(L
"Enabling both script profiling and script debugging is not supported!");
146 if (args.
Has(
"buildarchive"))
156 for (
size_t i = 0; i < conf.size(); ++i)
158 CStr name_value = conf[i];
159 if (name_value.Find(
':') != -1)
161 CStr name = name_value.BeforeFirst(
":");
162 CStr value = name_value.AfterFirst(
":");
177 if (args.
Has(
"profile"))
180 if (args.
Has(
"quickstart"))
186 if (args.
Has(
"nosound"))
189 if (args.
Has(
"shadows"))
192 if (args.
Has(
"xres"))
195 if (args.
Has(
"yres"))
198 if (args.
Has(
"vsync"))
201 if (args.
Has(
"ooslog"))
204 if (args.
Has(
"serializationtest"))
211 TIMER(L
"CONFIG_Init");
233 int max_history_lines = 200;
234 CFG_GET_VAL(
"console.history.size", Int, max_history_lines);
CStr Get(const char *name) const
Get the value of the named parameter.
ISoundManager * g_SoundManager
std::vector< CStr > GetMultiple(const char *name) const
Get all the values given to the named parameter.
#define CFG_GET_VAL(name, type, destination)
bool g_ScriptProfilingEnabled
static void ProcessCommandLineArgs(const CmdLineArgs &args)
virtual void SetActionGain(float gain)=0
virtual void SetMasterGain(float gain)=0
void CONFIG_Init(const CmdLineArgs &args)
virtual void SetAmbientGain(float gain)=0
bool Has(const char *name) const
Test whether the given name was specified, as either -name or -name=value
void UseHistoryFile(const VfsPath &filename, int historysize)
virtual void SetMusicGain(float gain)=0
virtual void SetUIGain(float gain)=0
#define TIMER(description)
Measures the time taken to execute code up until end of the current scope; displays it via debug_prin...
static void LoadGlobals()
bool g_ShowPathfindingOverlay