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

Function deletecfg

source/src/command.cpp:1618–1630  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1616COMMAND(writecfg, "");
1617
1618void deletecfg()
1619{
1620 string configs[] = { "config/saved.cfg", "config/init.cfg" };
1621 loopj(2) // delete files in homedir and basedir if possible
1622 {
1623 loopi(sizeof(configs)/sizeof(configs[0]))
1624 {
1625 const char *file = findfile(path(configs[i], true), "r");
1626 if(!file || findfilelocation == FFL_ZIP) continue;
1627 delfile(file);
1628 }
1629 }
1630}
1631#endif
1632
1633void identnames(vector<const char *> &names, bool builtinonly)

Callers 1

quitFunction · 0.85

Calls 5

findfileFunction · 0.85
pathFunction · 0.85
delfileFunction · 0.85
loopjFunction · 0.70
loopiFunction · 0.70

Tested by

no test coverage detected