diff options
Diffstat (limited to 'src/emu/ui/filesel.c')
-rw-r--r-- | src/emu/ui/filesel.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/ui/filesel.c b/src/emu/ui/filesel.c index 1ac5efe0d2a..6828e29ae35 100644 --- a/src/emu/ui/filesel.c +++ b/src/emu/ui/filesel.c @@ -246,7 +246,7 @@ ui_menu_file_create::~ui_menu_file_create() void ui_menu_file_create::custom_render(void *selectedref, float top, float bottom, float origx1, float origy1, float origx2, float origy2) { extra_text_render(container, top, bottom, origx1, origy1, origx2, origy2, - m_current_directory, + m_current_directory.c_str(), NULL); } @@ -265,7 +265,7 @@ void ui_menu_file_create::populate() if (get_selection() == ITEMREF_NEW_IMAGE_NAME) { buffer.cat(m_filename_buffer).cat("_"); - new_image_name = buffer; + new_image_name = buffer.c_str(); } else { @@ -374,7 +374,7 @@ void ui_menu_file_selector::custom_render(void *selectedref, float top, float bo { extra_text_render(container, top, bottom, origx1, origy1, origx2, origy2, - m_current_directory, + m_current_directory.c_str(), NULL); } @@ -476,13 +476,13 @@ ui_menu_file_selector::file_selector_entry *ui_menu_file_selector::append_dirent } // determine the full path - zippath_combine(buffer, m_current_directory, dirent->name); + zippath_combine(buffer, m_current_directory.c_str(), dirent->name); // create the file selector entry entry = append_entry( entry_type, dirent->name, - buffer); + buffer.c_str()); return entry; } @@ -544,7 +544,7 @@ void ui_menu_file_selector::populate() const file_selector_entry *selected_entry = NULL; int i; const char *volume_name; - const char *path = m_current_directory; + const char *path = m_current_directory.c_str(); // open the directory err = zippath_opendir(path, &directory); @@ -594,7 +594,7 @@ void ui_menu_file_selector::populate() selected_entry = entry; // do we have to select this file? - if (!core_stricmp(m_current_file, dirent->name)) + if (!core_stricmp(m_current_file.c_str(), dirent->name)) selected_entry = entry; } } |