diff options
author | 2021-01-06 19:09:16 +1100 | |
---|---|---|
committer | 2021-01-06 19:09:16 +1100 | |
commit | 8228719f036324734b804b1488c6233fe14b0b36 (patch) | |
tree | 3957e5e8515d11eabc00558690f7b83cc23743fb /src/osd/modules/debugger/debugimgui.cpp | |
parent | 542cf128ba89e8554c6d595264b2b7b68b7fb25a (diff) |
Tidy up loose ends:
* Fixed a couple of fixed-size buffers in Windows OSD code.
* Marked MAME as aware of long paths in Windows manifest.
* Made a cleaner, thread-safe API for getting volume names.
* Added compile-time option to disable recompiler W^X mode.
* NuBus image device current directory doesn't need to be pinned.
Diffstat (limited to 'src/osd/modules/debugger/debugimgui.cpp')
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 6b1c52a7281..f30d07bc93b 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -993,13 +993,12 @@ void debug_imgui::refresh_filelist() { int x = 0; // add drives - const char *volume_name; - while((volume_name = osd_get_volume_name(x))!=nullptr) + for(std::string const &volume_name : osd_get_volume_names()) { file_entry temp; temp.type = file_entry_type::DRIVE; - temp.basename = std::string(volume_name); - temp.fullpath = std::string(volume_name); + temp.basename = volume_name; + temp.fullpath = volume_name; m_filelist.emplace_back(std::move(temp)); x++; } |