Correct naming...
This commit is contained in:
parent
7a6e3febf2
commit
d9d3d435ec
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue