diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-01-26 01:06:45 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-01-26 01:06:45 +0200 |
commit | a0f0517c5bec0a2b667813abb9ff8b08cd318952 (patch) | |
tree | 52166a39839da0ad72aadfbcec74bff6b4287798 | |
parent | b4568216804215af4ef7e511f988044188d581aa (diff) | |
download | minetest-a0f0517c5bec0a2b667813abb9ff8b08cd318952.tar.gz minetest-a0f0517c5bec0a2b667813abb9ff8b08cd318952.tar.bz2 minetest-a0f0517c5bec0a2b667813abb9ff8b08cd318952.zip |
should work now
-rw-r--r-- | src/filesys.cpp | 6 | ||||
-rw-r--r-- | src/filesys.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp index 2fd90c237..287090e8a 100644 --- a/src/filesys.cpp +++ b/src/filesys.cpp @@ -157,7 +157,11 @@ bool RecursiveDelete(std::string path) int r = SHFileOperation(&sfo); - return (r == 0); + if(r != 0) + std::cerr<<"SHFileOperation returned "<<r<<std::endl; + + //return (r == 0); + return true; } #else // POSIX diff --git a/src/filesys.h b/src/filesys.h index e46b17b0d..4dd90b84e 100644 --- a/src/filesys.h +++ b/src/filesys.h @@ -41,6 +41,7 @@ bool CreateDir(std::string path); bool PathExists(std::string path); // Only pass full paths to this one. True on success. +// NOTE: The WIN32 version returns always true. bool RecursiveDelete(std::string path); // Only pass full paths to this one. True on success. |