From e258601bb59385f11e7cbfb59cf452867002c5a6 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Thu, 21 Oct 2021 13:46:42 -0300 Subject: [PATCH] Fix the save dir not being created if appdata/LOVE/ doesn't exist. --- src/modules/filesystem/Filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/filesystem/Filesystem.cpp b/src/modules/filesystem/Filesystem.cpp index fcdc3f79a..bccd35a03 100644 --- a/src/modules/filesystem/Filesystem.cpp +++ b/src/modules/filesystem/Filesystem.cpp @@ -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)