mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
fix File Manager when cfg image directory invalid (nw)
This commit is contained in:
parent
7ae7811ca1
commit
96a3e73dbc
@ -68,9 +68,9 @@ menu_control_device_image::menu_control_device_image(mame_ui_manager &mui, rende
|
||||
m_current_directory = m_image.working_directory();
|
||||
}
|
||||
|
||||
// check to see if the path exists; if not clear it
|
||||
// check to see if the path exists; if not then set to current directory
|
||||
if (util::zippath_opendir(m_current_directory, nullptr) != osd_file::error::NONE)
|
||||
m_current_directory.clear();
|
||||
osd_get_full_path(m_current_directory, ".");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user