mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-05 05:35:07 +01:00
Fix VFS CreateFile directory creation
This commit is contained in:
parent
f5bcb40c41
commit
d9f6540831
@ -19,7 +19,7 @@ namespace skyline::vfs {
|
|||||||
auto fullPath{basePath + path};
|
auto fullPath{basePath + path};
|
||||||
|
|
||||||
// Create a directory that will hold the file
|
// 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)};
|
int fd{open(fullPath.c_str(), O_RDWR | O_CREAT, S_IRUSR | S_IWUSR)};
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
if (errno != ENOENT)
|
if (errno != ENOENT)
|
||||||
|
Loading…
Reference in New Issue
Block a user