Fix infinite recursion when Emu.GetDir is /app_home/

This commit is contained in:
Megamouse
2026-10-01 21:00:18 +03:00
committed by Elad
parent a5515d2371
commit 3b3c7f4f07
+4 -1
View File
@@ -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;