mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-14 01:27:00 +00:00
sys_fs: fix mountpoint detection
This commit is contained in:
parent
ef3b0db7d8
commit
d477889763
@ -65,7 +65,7 @@ lv2_fs_mount_point* lv2_fs_object::get_mp(std::string_view filename)
|
||||
|
||||
if (mp_begin + 1)
|
||||
{
|
||||
const auto mp_name = filename.substr(mp_begin, filename.find_first_of('/', mp_begin));
|
||||
const auto mp_name = filename.substr(mp_begin, filename.find_first_of('/', mp_begin) - mp_begin);
|
||||
|
||||
if (mp_name == "dev_hdd1"sv)
|
||||
return &g_mp_sys_dev_hdd1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user