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)