| 1616 | COMMAND(writecfg, ""); |
| 1617 | |
| 1618 | void 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 | |
| 1633 | void identnames(vector<const char *> &names, bool builtinonly) |