summaryrefslogtreecommitdiffstats
path: root/docs/release/src/frontend/mame/mameopts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'docs/release/src/frontend/mame/mameopts.cpp')
-rw-r--r--docs/release/src/frontend/mame/mameopts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/release/src/frontend/mame/mameopts.cpp b/docs/release/src/frontend/mame/mameopts.cpp
index 88ae9951cd9..0e6c28da23d 100644
--- a/docs/release/src/frontend/mame/mameopts.cpp
+++ b/docs/release/src/frontend/mame/mameopts.cpp
@@ -91,7 +91,7 @@ void mame_options::parse_standard_inis(emu_options &options, std::ostream &error
}
// next parse "source/<sourcefile>.ini"
- std::string sourcename = core_filename_extract_base(cursystem->type.source(), true).insert(0, "source" PATH_SEPARATOR);
+ std::string sourcename = std::string(core_filename_extract_base(cursystem->type.source(), true)).insert(0, "source" PATH_SEPARATOR);
parse_one_ini(options, sourcename.c_str(), OPTION_PRIORITY_SOURCE_INI, &error_stream);
// then parse the grandparent, parent, and system-specific INIs
@@ -112,7 +112,7 @@ void mame_options::parse_standard_inis(emu_options &options, std::ostream &error
const game_driver *mame_options::system(const emu_options &options)
{
- int index = driver_list::find(core_filename_extract_base(options.system_name(), true).c_str());
+ int index = driver_list::find(std::string(core_filename_extract_base(options.system_name(), true)).c_str());
return (index != -1) ? &driver_list::driver(index) : nullptr;
}