diff options
Diffstat (limited to 'src/emu/debug/debugcmd.c')
-rw-r--r-- | src/emu/debug/debugcmd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/debug/debugcmd.c b/src/emu/debug/debugcmd.c index 6d5771430eb..0b0d2cffdfd 100644 --- a/src/emu/debug/debugcmd.c +++ b/src/emu/debug/debugcmd.c @@ -1702,7 +1702,7 @@ static void execute_hotspot(running_machine &machine, int ref, int params, const static void execute_statesave(running_machine &machine, int ref, int params, const char *param[]) { astring filename(param[0]); - machine.immediate_save(filename); + machine.immediate_save(filename.c_str()); debug_console_printf(machine, "State save attempted. Please refer to window message popup for results.\n"); } @@ -1714,7 +1714,7 @@ static void execute_statesave(running_machine &machine, int ref, int params, con static void execute_stateload(running_machine &machine, int ref, int params, const char *param[]) { astring filename(param[0]); - machine.immediate_load(filename); + machine.immediate_load(filename.c_str()); // Clear all PC & memory tracks device_iterator iter(machine.root_device()); @@ -2583,7 +2583,7 @@ static void execute_trace_internal(running_machine &machine, int ref, int params return; /* open the file */ - if (core_stricmp(filename, "off") != 0) + if (core_stricmp(filename.c_str(), "off") != 0) { mode = "w"; @@ -2594,7 +2594,7 @@ static void execute_trace_internal(running_machine &machine, int ref, int params filename = filename.substr(2); } - f = fopen(filename, mode); + f = fopen(filename.c_str(), mode); if (!f) { debug_console_printf(machine, "Error opening file '%s'\n", param[0]); @@ -2835,7 +2835,7 @@ static void execute_snap(running_machine &machine, int ref, int params, const ch if (fname.find(0, ".png") == -1) fname.cat(".png"); emu_file file(machine.options().snapshot_directory(), OPEN_FLAG_WRITE | OPEN_FLAG_CREATE | OPEN_FLAG_CREATE_PATHS); - file_error filerr = file.open(fname); + file_error filerr = file.open(fname.c_str()); if (filerr != FILERR_NONE) { |