summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-05-15 11:17:57 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-05-15 11:17:57 -0400
commiteb5fc0c483dbb82151ab8271158d126e4e898372 (patch)
treed863d88f5b067504f5be9a0346d562dd603deb6a
parent8ba12dd6da5cddb606707bfcda79f75171290f0a (diff)
imgcntrl.cpp: Workaround for MT #7978
-rw-r--r--src/frontend/mame/ui/imgcntrl.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/frontend/mame/ui/imgcntrl.cpp b/src/frontend/mame/ui/imgcntrl.cpp
index 966bffcaba1..33a71b7354a 100644
--- a/src/frontend/mame/ui/imgcntrl.cpp
+++ b/src/frontend/mame/ui/imgcntrl.cpp
@@ -53,6 +53,13 @@ menu_control_device_image::menu_control_device_image(mame_ui_manager &mui, rende
{
m_state = START_OTHER_PART;
m_current_directory = m_image.working_directory();
+
+ // check to see if we've never initialized the working directory
+ if (m_current_directory.empty())
+ {
+ m_current_directory = machine().image().setup_working_directory();
+ m_image.set_working_directory(m_current_directory);
+ }
}
else
{