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

Function Options_SetInt

src/Options.c:170–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170void Options_SetInt(const char* keyRaw, int value) {
171 cc_string str; char strBuffer[STRING_INT_CHARS];
172 String_InitArray(str, strBuffer);
173 String_AppendInt(&str, value);
174 Options_Set(keyRaw, &str);
175}
176
177void Options_Set(const char* keyRaw, const cc_string* value) {
178 cc_string key = String_FromReadonly(keyRaw);

Callers 11

TouchOnscreen_AnyFunction · 0.85
ClO_SetMusicFunction · 0.85
ClO_SetSoundsFunction · 0.85
ChO_SetChatlinesFunction · 0.85
HS_SetFOVFunction · 0.85
MiO_SetMusicFunction · 0.85
MiO_SetSoundsFunction · 0.85
MiO_SetSensitivityFunction · 0.85
NostalgiaScreen_VersionFunction · 0.85
Game_UserSetViewDistanceFunction · 0.85

Calls 2

String_AppendIntFunction · 0.85
Options_SetFunction · 0.85

Tested by

no test coverage detected