MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Options_SetBool

Function Options_SetBool

src/Options.c:164–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163
164void Options_SetBool(const char* keyRaw, cc_bool value) {
165 static const cc_string str_true = String_FromConst("True");
166 static const cc_string str_false = String_FromConst("False");
167 Options_Set(keyRaw, value ? &str_true : &str_false);
168}
169
170void Options_SetInt(const char* keyRaw, int value) {
171 cc_string str; char strBuffer[STRING_INT_CHARS];

Callers 15

ClO_SetInvertFunction · 0.85
ClO_SetAnaglyphFunction · 0.85
ClO_SetShowFPSFunction · 0.85
ClO_SetViewBobFunction · 0.85
ClO_SetHacksFunction · 0.85
GrO_SetSmoothFunction · 0.85
GrO_SetMipmapsFunction · 0.85
ChO_SetAutoScaleChatFunction · 0.85
ChO_SetLoggingFunction · 0.85
ChO_SetClickableFunction · 0.85
GuO_SetShadowsFunction · 0.85
GuO_SetShowFPSFunction · 0.85

Calls 1

Options_SetFunction · 0.85

Tested by

no test coverage detected