mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-12-29 15:35:29 +03:00
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.
This commit is contained in:
parent
84dec7561c
commit
2bbeb6b08f
@ -10,8 +10,8 @@
|
|||||||
|
|
||||||
namespace skyline::vfs {
|
namespace skyline::vfs {
|
||||||
OsFileSystem::OsFileSystem(const std::string &basePath) : FileSystem(), basePath(basePath.ends_with('/') ? basePath : basePath + '/') {
|
OsFileSystem::OsFileSystem(const std::string &basePath) : FileSystem(), basePath(basePath.ends_with('/') ? basePath : basePath + '/') {
|
||||||
if (!DirectoryExists(basePath))
|
if (!DirectoryExists(""))
|
||||||
if (!CreateDirectory(basePath, true))
|
if (!CreateDirectory("", true))
|
||||||
throw exception("Error creating the OS filesystem backing directory");
|
throw exception("Error creating the OS filesystem backing directory");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user