fs: update + consolidate path normalization logic
This commit is contained in:
1 parent
5ef93778f6
commit
32803d9920
22 files changed
+1007
-463
No files matched your search
@@ -72,7 +72,7 @@ namespace ams::fs {
|
||||
|
||||
fssrv::sf::Path sf_path;
|
||||
if (len > 0) {
|
||||
const bool ending_sep = PathTool::IsSeparator(root_path[len - 1]);
|
||||
const bool ending_sep = PathNormalizer::IsSeparator(root_path[len - 1]);
|
||||
FspPathPrintf(std::addressof(sf_path), "%s%s", root_path, ending_sep ? "" : "/");
|
||||
} else {
|
||||
sf_path.str[0] = '\x00';
|
||||
|
||||
Reference in new issue
Block a user