MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ApplyPresetToTiers

Method ApplyPresetToTiers

engine/Poseidon/UI/Settings/GraphicsConfig.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102bool GraphicsConfig::Migrate(int refreshHz)
103{
104 if (version >= kVersion)
105 return false;
106
107 // 1.0 is the pre-v1 stamped default; any other value was chosen and stays.
108 if (version < 1 && gamma == 1.0f)
109 gamma = 1.2f;
110
111 // A cap of 0 below v2 is indistinguishable from the old default, so it is
112 // taken as never set. From v2 on it is the user's Unlimited and survives.
113 if (fpsCap == 0)
114 fpsCap = FpsCapForRefreshRate(refreshHz);
115

Callers 3

SetRowValueMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected