Changeset View
Changeset View
Standalone View
Standalone View
source/ps/GameSetup/HWDetect.cpp
Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
void SetDisableS3TC(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | void SetDisableS3TC(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | ||||
{ | { | ||||
if (!IsOverridden("nos3tc")) | if (!IsOverridden("nos3tc")) | ||||
ogl_tex_override(OGL_TEX_S3TC, disabled ? OGL_TEX_DISABLE : OGL_TEX_ENABLE); | ogl_tex_override(OGL_TEX_S3TC, disabled ? OGL_TEX_DISABLE : OGL_TEX_ENABLE); | ||||
} | } | ||||
void SetDisableShadows(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | void SetDisableShadows(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | ||||
{ | { | ||||
if (!IsOverridden("shadows")) | g_ConfigDB.SetValueBool(CFG_SYSTEM, "shadows", !disabled); | ||||
g_Shadows = !disabled; | |||||
} | } | ||||
void SetDisableShadowPCF(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | void SetDisableShadowPCF(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | ||||
{ | { | ||||
if (!IsOverridden("shadowpcf")) | g_ConfigDB.SetValueBool(CFG_SYSTEM, "shadowpcf", !disabled); | ||||
g_ShadowPCF = !disabled; | |||||
} | } | ||||
void SetDisableAllWater(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | void SetDisableAllWater(ScriptInterface::CxPrivate* UNUSED(pCxPrivate), bool disabled) | ||||
{ | { | ||||
if (!IsOverridden("watereffects")) | if (!IsOverridden("watereffects")) | ||||
g_WaterEffects = !disabled; | g_WaterEffects = !disabled; | ||||
if (!IsOverridden("waterfancyeffects")) | if (!IsOverridden("waterfancyeffects")) | ||||
g_WaterFancyEffects = !disabled; | g_WaterFancyEffects = !disabled; | ||||
▲ Show 20 Lines • Show All 607 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator