diff options
Diffstat (limited to 'src/osd/modules/debugger/win/consolewininfo.cpp')
-rw-r--r-- | src/osd/modules/debugger/win/consolewininfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/osd/modules/debugger/win/consolewininfo.cpp b/src/osd/modules/debugger/win/consolewininfo.cpp index 88367c09fc9..9610cf68e78 100644 --- a/src/osd/modules/debugger/win/consolewininfo.cpp +++ b/src/osd/modules/debugger/win/consolewininfo.cpp @@ -281,7 +281,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) std::string as = slmap.find(opt_name)->second; /* Make sure a folder was specified, and that it exists */ - if ((!osd::directory::open(as.c_str())) || (as.find(':') == std::string::npos)) + if ((!osd::directory::open(as)) || (as.find(':') == std::string::npos)) { /* Default to emu directory */ osd_get_full_path(as, "."); @@ -321,7 +321,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) buf.erase(0, t1+1); // load software - img->load_software( buf.c_str()); + img->load_software(buf); } } } @@ -351,7 +351,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) as = buf; // the only path /* Make sure a folder was specified, and that it exists */ - if ((!osd::directory::open(as.c_str())) || (as.find(':') == std::string::npos)) + if ((!osd::directory::open(as)) || (as.find(':') == std::string::npos)) { /* Default to emu directory */ osd_get_full_path(as, "."); @@ -377,7 +377,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) if (GetOpenFileName(&ofn)) { auto utf8_buf = osd::text::from_tstring(selectedFilename); - img->load(utf8_buf.c_str()); + img->load(utf8_buf); } } } @@ -406,7 +406,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) as = buf; // the only path /* Make sure a folder was specified, and that it exists */ - if ((!osd::directory::open(as.c_str())) || (as.find(':') == std::string::npos)) + if ((!osd::directory::open(as)) || (as.find(':') == std::string::npos)) { /* Default to emu directory */ osd_get_full_path(as, "."); @@ -432,7 +432,7 @@ bool consolewin_info::handle_command(WPARAM wparam, LPARAM lparam) if (GetSaveFileName(&ofn)) { auto utf8_buf = osd::text::from_tstring(selectedFilename); - img->create(utf8_buf.c_str(), img->device_get_indexed_creatable_format(0), nullptr); + img->create(utf8_buf, img->device_get_indexed_creatable_format(0), nullptr); } } } @@ -598,7 +598,7 @@ bool consolewin_info::get_softlist_info(device_image_interface *img) while (sl_root && !passes_tests) { std::string test_path = sl_root + sl_dir; - if (osd::directory::open(test_path.c_str())) + if (osd::directory::open(test_path)) { passes_tests = true; slmap[opt_name] = test_path; |