mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Emu: Fix disc game move from hdd0/game
This commit is contained in:
parent
c2ab3c664c
commit
73bdf7481e
3 changed files with 6 additions and 4 deletions
|
@ -383,12 +383,12 @@ shared_ptr<fs::device_base> fs::set_virtual_device(const std::string& name, shar
|
|||
return get_device_manager().set_device(name, std::move(device));
|
||||
}
|
||||
|
||||
std::string fs::get_parent_dir(const std::string& path)
|
||||
std::string fs::get_parent_dir(const std::string& path, u32 levels)
|
||||
{
|
||||
std::string_view result = path;
|
||||
|
||||
// Number of path components to remove
|
||||
usz to_remove = 1;
|
||||
usz to_remove = levels;
|
||||
|
||||
while (to_remove--)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue