mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00: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);
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue