Correct naming...

This commit is contained in:
Dmitry 2019-07-28 21:42:32 +03:00 committed by jeefo
commit d9d3d435ec
2 changed files with 2 additions and 2 deletions

View file

@ -129,7 +129,7 @@ struct Platform : public Singleton <Platform> {
return !!result; return !!result;
} }
bool removeDirectory (const char *dir) { bool removeFile (const char *dir) {
#if defined(CR_WINDOWS) #if defined(CR_WINDOWS)
_unlink (dir); _unlink (dir);
#else #else

View file

@ -2605,7 +2605,7 @@ void BotGraph::eraseFromDisk () {
for (const auto &item : forErase) { for (const auto &item : forErase) {
if (File::exists (item)) { if (File::exists (item)) {
plat.removeDirectory (item.chars ()); plat.removeFile (item.chars ());
game.print ("File %s, has been deleted from the hard disk", item.chars ()); game.print ("File %s, has been deleted from the hard disk", item.chars ());
} }
else { else {