diff options
author | Vas Crabb <vas@vastheman.com> | 2020-03-10 18:21:10 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2020-03-10 18:21:10 +1100 |
commit | 9c600695f0ed4456270bf5f1676b8fadaed34127 (patch) | |
tree | 1e52fb8b786e9bece80b05e2f583bba207f5af7c /src/frontend/mame/ui/ui.cpp | |
parent | cc70fe02bacdf8dc17fe75065e387276c8056e5e (diff) |
(nw) Cleanup on the way:
* Add doxygen comments for bit manipulation functions
* Add an overload of BIT that works like the AArch64 UBFX instruction
* Kill off some of the silly concatenating overloads for emu_file::open
* Make searchpath acually useful for devices
This is a checkpoint - I'm planning to improve ROM loading behaviour at
least a little.
Diffstat (limited to 'src/frontend/mame/ui/ui.cpp')
-rw-r--r-- | src/frontend/mame/ui/ui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/ui.cpp b/src/frontend/mame/ui/ui.cpp index b5b37a3450f..de1a7d5825c 100644 --- a/src/frontend/mame/ui/ui.cpp +++ b/src/frontend/mame/ui/ui.cpp @@ -2129,7 +2129,7 @@ void mame_ui_manager::save_main_option() // attempt to open the main ini file { emu_file file(machine().options().ini_path(), OPEN_FLAG_READ); - if (file.open(emulator_info::get_configname(), ".ini") == osd_file::error::NONE) + if (file.open(std::string(emulator_info::get_configname()) + ".ini") == osd_file::error::NONE) { try { @@ -2159,7 +2159,7 @@ void mame_ui_manager::save_main_option() // attempt to open the output file { emu_file file(machine().options().ini_path(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); - if (file.open(emulator_info::get_configname(), ".ini") == osd_file::error::NONE) + if (file.open(std::string(emulator_info::get_configname()) + ".ini") == osd_file::error::NONE) { // generate the updated INI std::string initext = options.output_ini(); |