diff options
Diffstat (limited to 'src/osd/sdl/sdlmain.c')
-rw-r--r-- | src/osd/sdl/sdlmain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osd/sdl/sdlmain.c b/src/osd/sdl/sdlmain.c index 3ed26882d81..04d622874f6 100644 --- a/src/osd/sdl/sdlmain.c +++ b/src/osd/sdl/sdlmain.c @@ -209,9 +209,9 @@ void MorphToPM() sdl_options::sdl_options() : osd_options() { - astring ini_path(INI_PATH); + std::string ini_path(INI_PATH); add_entries(sdl_options::s_option_entries); - ini_path.replace(0, "APP_NAME", emulator_info::get_appname_lower()); + strreplace(ini_path,"APP_NAME", emulator_info::get_appname_lower()); set_default_value(SDLOPTION_INIPATH, ini_path.c_str()); } @@ -493,14 +493,14 @@ void sdl_osd_interface::init(running_machine &machine) // determine if we are benchmarking, and adjust options appropriately int bench = options().bench(); - astring error_string; + std::string error_string; if (bench > 0) { options().set_value(OPTION_THROTTLE, false, OPTION_PRIORITY_MAXIMUM, error_string); options().set_value(OSDOPTION_SOUND, "none", OPTION_PRIORITY_MAXIMUM, error_string); options().set_value(OSDOPTION_VIDEO, "none", OPTION_PRIORITY_MAXIMUM, error_string); options().set_value(OPTION_SECONDS_TO_RUN, bench, OPTION_PRIORITY_MAXIMUM, error_string); - assert(!error_string); + assert(error_string.c_str()[0] == 0); } // Some driver options - must be before audio init! |