mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-10-11 22:49:55 +00:00
Fix infinite recursion when Emu.GetDir is /app_home/
This commit is contained in:
@@ -363,7 +363,10 @@ const lv2_fs_mount_info& lv2_fs_mount_info_map::lookup(std::string_view path, bo
|
||||
|
||||
if (ret->mp->flags & lv2_mp_flag::reflection)
|
||||
{
|
||||
ret = &lookup(Emu.GetDir(), false, nullptr);
|
||||
if (const std::string& dir = Emu.GetDir(); lv2_fs_object::get_path_root_and_trail(dir).first != dev_root)
|
||||
{
|
||||
ret = &lookup(dir, false, nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
return *ret;
|
||||
|
||||
Reference in New Issue
Block a user