mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Fix the save dir not being created if appdata/LOVE/ doesn't exist.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user