mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 22:41:25 +12:00
Fix #11126
This commit is contained in:
parent
7c2d6f8a23
commit
05086cda3b
1 changed files with 1 additions and 1 deletions
|
@ -3091,7 +3091,7 @@ bool Emulator::IsPathInsideDir(std::string_view path, std::string_view dir) cons
|
||||||
{
|
{
|
||||||
const std::string dir_path = GetCallbacks().resolve_path(dir);
|
const std::string dir_path = GetCallbacks().resolve_path(dir);
|
||||||
|
|
||||||
return !dir_path.empty() && (GetCallbacks().resolve_path(path) + '/').starts_with(dir_path + '/');
|
return !dir_path.empty() && (GetCallbacks().resolve_path(path) + '/').starts_with((dir_path.back() == '/') ? dir_path : (dir_path + '/'));
|
||||||
};
|
};
|
||||||
|
|
||||||
const std::string& Emulator::GetFakeCat() const
|
const std::string& Emulator::GetFakeCat() const
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue