From d9d3d435ec9f919480d87c0519cdb3360d0f2515 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Sun, 28 Jul 2019 21:42:32 +0300 Subject: [PATCH] Correct naming... --- include/crlib/cr-platform.h | 2 +- source/graph.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/crlib/cr-platform.h b/include/crlib/cr-platform.h index f402667..9128b57 100644 --- a/include/crlib/cr-platform.h +++ b/include/crlib/cr-platform.h @@ -129,7 +129,7 @@ struct Platform : public Singleton { return !!result; } - bool removeDirectory (const char *dir) { + bool removeFile (const char *dir) { #if defined(CR_WINDOWS) _unlink (dir); #else diff --git a/source/graph.cpp b/source/graph.cpp index 9e5b6a9..3d22d7b 100644 --- a/source/graph.cpp +++ b/source/graph.cpp @@ -2605,7 +2605,7 @@ void BotGraph::eraseFromDisk () { for (const auto &item : forErase) { 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 ()); } else {