early-access version 2037
This commit is contained in:
parent
05e180d54a
commit
ba07701166
2 changed files with 14 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
yuzu emulator early access
|
yuzu emulator early access
|
||||||
=============
|
=============
|
||||||
|
|
||||||
This is the source code for early-access 2036.
|
This is the source code for early-access 2037.
|
||||||
|
|
||||||
## Legal Notice
|
## Legal Notice
|
||||||
|
|
||||||
|
|
|
@ -97,14 +97,19 @@ ResultCode VfsDirectoryServiceWrapper::DeleteFile(const std::string& path_) cons
|
||||||
|
|
||||||
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
|
ResultCode VfsDirectoryServiceWrapper::CreateDirectory(const std::string& path_) const {
|
||||||
std::string path(Common::FS::SanitizePath(path_));
|
std::string path(Common::FS::SanitizePath(path_));
|
||||||
auto dir = GetDirectoryRelativeWrapped(backing, Common::FS::GetParentPath(path));
|
const auto components = Common::FS::SplitPathComponents(path);
|
||||||
if (dir == nullptr || Common::FS::GetFilename(Common::FS::GetParentPath(path)).empty()) {
|
std::string relative_path = "";
|
||||||
dir = backing;
|
for (const auto& component : components) {
|
||||||
}
|
// Skip empty path components
|
||||||
auto new_dir = dir->CreateSubdirectory(Common::FS::GetFilename(path));
|
if (component.empty()) {
|
||||||
if (new_dir == nullptr) {
|
continue;
|
||||||
// TODO(DarkLordZach): Find a better error code for this
|
}
|
||||||
return ResultUnknown;
|
relative_path = Common::FS::SanitizePath(relative_path + '/' + component);
|
||||||
|
auto new_dir = backing->CreateSubdirectory(relative_path);
|
||||||
|
if (new_dir == nullptr) {
|
||||||
|
// TODO(DarkLordZach): Find a better error code for this
|
||||||
|
return ResultUnknown;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ResultSuccess;
|
return ResultSuccess;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue