diff options
author | AJR <ajrhacker@users.noreply.github.com> | 2022-02-11 23:22:46 -0500 |
---|---|---|
committer | AJR <ajrhacker@users.noreply.github.com> | 2022-02-11 23:22:46 -0500 |
commit | 0cb0cfd4c66915b43929d496fb694445fd7ab6ea (patch) | |
tree | bf6b5354e06024451554153eb4d60fbc97b47811 /src/emu/debug | |
parent | a9440352de702cc42c4ac972aeb1e37fe6bd8b2a (diff) |
Remove fileio.h from emu.h
Diffstat (limited to 'src/emu/debug')
-rw-r--r-- | src/emu/debug/debugcmd.cpp | 9 | ||||
-rw-r--r-- | src/emu/debug/debugcon.cpp | 5 | ||||
-rw-r--r-- | src/emu/debug/debugcon.h | 1 | ||||
-rw-r--r-- | src/emu/debug/debugcpu.cpp | 1 |
4 files changed, 11 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]); } diff --git a/src/emu/debug/debugcon.cpp b/src/emu/debug/debugcon.cpp index 32a4888c285..210087ab1c0 100644 --- a/src/emu/debug/debugcon.cpp +++ b/src/emu/debug/debugcon.cpp @@ -16,6 +16,7 @@ #include "textbuf.h" #include "debugger.h" +#include "fileio.h" #include "corestr.h" @@ -86,6 +87,10 @@ debugger_console::debugger_console(running_machine &machine) } } +debugger_console::~debugger_console() +{ +} + /*------------------------------------------------- exit - frees the console system diff --git a/src/emu/debug/debugcon.h b/src/emu/debug/debugcon.h index 5271b0e5ae5..f8a0bafc7c1 100644 --- a/src/emu/debug/debugcon.h +++ b/src/emu/debug/debugcon.h @@ -79,6 +79,7 @@ class debugger_console { public: debugger_console(running_machine &machine); + ~debugger_console(); // command handling CMDERR execute_command(const std::string &command, bool echo); diff --git a/src/emu/debug/debugcpu.cpp b/src/emu/debug/debugcpu.cpp index b4689bc9892..978702094b9 100644 --- a/src/emu/debug/debugcpu.cpp +++ b/src/emu/debug/debugcpu.cpp @@ -19,6 +19,7 @@ #include "debugger.h" #include "emuopts.h" +#include "fileio.h" #include "screen.h" #include "uiinput.h" |