Emu: Fix disc game move from hdd0/game
This commit is contained in:
+2
-2
@@ -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--)
|
||||
{
|
||||
|
||||
+1
-1
@@ -156,7 +156,7 @@ namespace fs
|
||||
shared_ptr<device_base> set_virtual_device(const std::string& name, shared_ptr<device_base> device);
|
||||
|
||||
// Try to get parent directory (returns empty string on failure)
|
||||
std::string get_parent_dir(const std::string& path);
|
||||
std::string get_parent_dir(const std::string& path, u32 levels = 1);
|
||||
|
||||
// Get file information
|
||||
bool stat(const std::string& path, stat_t& info);
|
||||
|
||||
Reference in New Issue
Block a user