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

Function StoredHotkeys_LoadAll

src/InputHandler.c:210–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210static void StoredHotkeys_LoadAll(void) {
211 cc_string entry, key, value;
212 int i;
213
214 for (i = 0; i < Options.count; i++) {
215 StringsBuffer_UNSAFE_GetRaw(&Options, i, &entry);
216 String_UNSAFE_Separate(&entry, '=', &key, &value);
217
218 if (!String_CaselessStarts(&key, &prefix)) continue;
219 StoredHotkey_Parse(&key, &value);
220 }
221}
222
223void StoredHotkeys_Load(int trigger, cc_uint8 modifiers) {
224 cc_string key, value; char keyBuffer[STRING_SIZE];

Callers 1

OnInitFunction · 0.85

Calls 4

String_UNSAFE_SeparateFunction · 0.85
String_CaselessStartsFunction · 0.85
StoredHotkey_ParseFunction · 0.85

Tested by

no test coverage detected