From 2bbeb6b08fe6736ecc3129c95b0760a71a9aad42 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 3 Jun 2022 19:33:31 +0100 Subject: [PATCH] Fix OsFileSystem initial directory creation By passing basePath as an argument the CreateDirectory function did mkdir(basePath+basePath) which is obviously not the intended behaviour, fix this. --- app/src/main/cpp/skyline/vfs/os_filesystem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp index c69093cd..8550727f 100644 --- a/app/src/main/cpp/skyline/vfs/os_filesystem.cpp +++ b/app/src/main/cpp/skyline/vfs/os_filesystem.cpp @@ -10,8 +10,8 @@ namespace skyline::vfs { OsFileSystem::OsFileSystem(const std::string &basePath) : FileSystem(), basePath(basePath.ends_with('/') ? basePath : basePath + '/') { - if (!DirectoryExists(basePath)) - if (!CreateDirectory(basePath, true)) + if (!DirectoryExists("")) + if (!CreateDirectory("", true)) throw exception("Error creating the OS filesystem backing directory"); }