From d9f6540831cee4b3cdba9bea55ca67d19dccb527 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Sat, 4 Jun 2022 19:19:30 +0100 Subject: [PATCH] Fix VFS CreateFile directory creation --- app/src/main/cpp/skyline/vfs/os_filesystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp index db40042a..968b7001 100644 --- a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp +++ b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp @@ -19,7 +19,7 @@ namespace skyline::vfs { auto fullPath{basePath + path}; // Create a directory that will hold the file - CreateDirectory(fullPath.substr(0, fullPath.find_last_of('/')), true); + CreateDirectory(path.substr(0, path.find_last_of('/')), true); int fd{open(fullPath.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)}; if (fd < 0) { if (errno != ENOENT)