Fix the save dir not being created if appdata/LOVE/ doesn't exist.

This commit is contained in:
Alex Szpakowski
2021-10-21 13:46:42 -03:00
parent 8a48f1b733
commit e258601bb5
+1 -1
View File
@@ -122,7 +122,7 @@ static bool getContainingDirectory(const std::string &path, std::string &newpath
newpath = path.substr(0, index);
// Bail if the root has been stripped out.
return newpath.find("/\\") != std::string::npos;
return newpath.find_first_of("/\\") != std::string::npos;
}
static bool createDirectoryRaw(const std::string &path)