MCPcopy Create free account
hub / github.com/assaultcube/AC / restore

Method restore

source/src/console.cpp:373–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371 }
372
373 void restore()
374 {
375 copystring(cmdline.buf, buf);
376 if(cmdline.pos >= (int)strlen(cmdline.buf)) cmdline.pos = -1;
377 DELETEA(cmdaction);
378 DELETEA(cmdprompt);
379 if(action) cmdaction = newstring(action);
380 if(prompt) cmdprompt = newstring(prompt);
381 storeinputcommand = false;
382 }
383
384 bool shouldsave()
385 {

Callers 1

consolekeyFunction · 0.45

Calls 2

copystringFunction · 0.85
newstringFunction · 0.85

Tested by

no test coverage detected