]> git.lizzy.rs Git - minetest.git/blobdiff - src/filesys.cpp
Workaround for blocks having a huge amount of active objects; add log messages relate...
[minetest.git] / src / filesys.cpp
index 8aa10ba585408730bacc72e53e7cae96dd1dad88..99a0a6ef882b710a43b9f6cf1215fd8706e6810b 100644 (file)
@@ -279,7 +279,7 @@ bool RecursiveDeleteContent(std::string path)
        {
                if(trim(list[i].name) == "." || trim(list[i].name) == "..")
                        continue;
-               std::string childpath = path + "/" + list[i].name;
+               std::string childpath = path + DIR_DELIM + list[i].name;
                bool r = RecursiveDelete(childpath);
                if(r == false)
                {
@@ -299,7 +299,7 @@ bool CreateAllDirs(std::string path)
        while(!PathExists(basepath))
        {
                tocreate.push_back(basepath);
-               pos = basepath.rfind('/');
+               pos = basepath.rfind(DIR_DELIM_C);
                if(pos == std::string::npos)
                        return false;
                basepath = basepath.substr(0,pos);