mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 13:31:27 +12:00
Fixed a bug in fs::get_parent_dir()
This commit is contained in:
parent
48ffc19193
commit
a131a41874
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ std::string fs::get_parent_dir(std::string_view path, u32 parent_level)
|
||||||
std::replace(normalized_path.begin(), normalized_path.end(), '\\', '/');
|
std::replace(normalized_path.begin(), normalized_path.end(), '\\', '/');
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (normalized_path.back() == '/')
|
if (normalized_path.ends_with('/'))
|
||||||
normalized_path.pop_back();
|
normalized_path.pop_back();
|
||||||
|
|
||||||
while (parent_level--)
|
while (parent_level--)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue