diff options
author | 2022-02-12 23:52:17 +1100 | |
---|---|---|
committer | 2022-02-12 23:52:17 +1100 | |
commit | acbec54361b3d87edd4c72d8e4603e619b04176a (patch) | |
tree | 2392652dae790cd3226d7cc2254e5df4f0fbae43 /src/emu/debug/debugcmd.cpp | |
parent | 9a349e7256c52f3a22926eaea2afefe5bdfa1b24 (diff) | |
parent | 8632d2f317c376c4a3db33ca6cf38e38afaf6e8b (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp index b8de0298432..9b68c234d2f 100644 --- a/src/emu/debug/debugcmd.cpp +++ b/src/emu/debug/debugcmd.cpp @@ -21,6 +21,7 @@ #include "debugger.h" #include "emuopts.h" +#include "fileio.h" #include "natkeyboard.h" #include "render.h" #include "screen.h" @@ -2191,8 +2192,7 @@ void debugger_commands::execute_rplist(const std::vector<std::string> ¶ms) void debugger_commands::execute_statesave(const std::vector<std::string> ¶ms) { - const std::string &filename(params[0]); - m_machine.immediate_save(filename.c_str()); + m_machine.immediate_save(params[0]); m_console.printf("State save attempted. Please refer to window message popup for results.\n"); } @@ -2203,8 +2203,7 @@ void debugger_commands::execute_statesave(const std::vector<std::string> ¶ms void debugger_commands::execute_stateload(const std::vector<std::string> ¶ms) { - const std::string &filename(params[0]); - m_machine.immediate_load(filename.c_str()); + m_machine.immediate_load(params[0]); // clear all PC & memory tracks for (device_t &device : device_enumerator(m_machine.root_device())) @@ -4259,7 +4258,7 @@ void debugger_commands::execute_unmount(const std::vector<std::string> ¶ms) void debugger_commands::execute_input(const std::vector<std::string> ¶ms) { - m_machine.natkeyboard().post_coded(params[0].c_str()); + m_machine.natkeyboard().post_coded(params[0]); } |