MCPcopy Index your code
hub / github.com/assaultcube/AC / writebinds

Function writebinds

source/src/console.cpp:620–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

618VARP(omitunchangeddefaultbinds, 0, 1, 2);
619
620void writebinds(stream *f)
621{
622 enumerate(keyms, keym, km,
623 loopj(3) if(*km.actions[j] && (!km.unchangeddefault[j] || omitunchangeddefaultbinds < 2))
624 f->printf("%s%s \"%s\" %s\n", km.unchangeddefault[j] && omitunchangeddefaultbinds ? "//" : "", keycmd(j), km.name, escapestring(km.actions[j]));
625 );
626}
627
628bool textinputbuffer::say(const char *c)
629{

Callers 1

writecfgFunction · 0.85

Calls 4

keycmdFunction · 0.85
escapestringFunction · 0.85
loopjFunction · 0.70
printfMethod · 0.45

Tested by

no test coverage detected