Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/Config.cpp
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | |||||
bool g_WaterReflection = false; | bool g_WaterReflection = false; | ||||
bool g_WaterShadows = false; | bool g_WaterShadows = false; | ||||
bool g_Particles = false; | bool g_Particles = false; | ||||
bool g_Fog = true; | bool g_Fog = true; | ||||
bool g_Silhouettes = false; | bool g_Silhouettes = false; | ||||
bool g_ShowSky = false; | bool g_ShowSky = false; | ||||
bool g_PreferGLSL = false; | bool g_PreferGLSL = true; | ||||
vladislavbelov: Why not in `hwdetect.js`? | |||||
bool g_PostProc = false; | bool g_PostProc = false; | ||||
bool g_SmoothLOS = false; | bool g_SmoothLOS = false; | ||||
float g_Gamma = 1.0f; | float g_Gamma = 1.0f; | ||||
CStr g_RenderPath = "default"; | CStr g_RenderPath = "default"; | ||||
int g_xres, g_yres; | int g_xres, g_yres; | ||||
Show All 37 Lines | static void LoadGlobals() | ||||
CFG_GET_VAL("waterreflection", g_WaterReflection); | CFG_GET_VAL("waterreflection", g_WaterReflection); | ||||
CFG_GET_VAL("watershadows", g_WaterShadows); | CFG_GET_VAL("watershadows", g_WaterShadows); | ||||
CFG_GET_VAL("renderpath", g_RenderPath); | CFG_GET_VAL("renderpath", g_RenderPath); | ||||
CFG_GET_VAL("particles", g_Particles); | CFG_GET_VAL("particles", g_Particles); | ||||
CFG_GET_VAL("fog", g_Fog); | CFG_GET_VAL("fog", g_Fog); | ||||
CFG_GET_VAL("silhouettes", g_Silhouettes); | CFG_GET_VAL("silhouettes", g_Silhouettes); | ||||
CFG_GET_VAL("showsky", g_ShowSky); | CFG_GET_VAL("showsky", g_ShowSky); | ||||
#if !CONFIG2_GLES | |||||
Not Done Inline ActionsIt's not correct since we read/write this config value in multiple places. vladislavbelov: It's not correct since we read/write this config value in multiple places. | |||||
CFG_GET_VAL("preferglsl", g_PreferGLSL); | CFG_GET_VAL("preferglsl", g_PreferGLSL); | ||||
#endif | |||||
CFG_GET_VAL("postproc", g_PostProc); | CFG_GET_VAL("postproc", g_PostProc); | ||||
CFG_GET_VAL("smoothlos", g_SmoothLOS); | CFG_GET_VAL("smoothlos", g_SmoothLOS); | ||||
CFG_GET_VAL("gui.scale", g_GuiScale); | CFG_GET_VAL("gui.scale", g_GuiScale); | ||||
} | } | ||||
static void ProcessCommandLineArgs(const CmdLineArgs& args) | static void ProcessCommandLineArgs(const CmdLineArgs& args) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator
Why not in hwdetect.js?