summaryrefslogtreecommitdiffstats
path: root/src/emu/debug/debugcmd.cpp
diff options
context:
space:
mode:
author Robbbert <Robbbert@users.noreply.github.com>2022-02-13 10:36:36 +1100
committer Robbbert <Robbbert@users.noreply.github.com>2022-02-13 10:36:36 +1100
commitea6d1ae3f4cd36732c2b9a2a6d02a06dc4a97def (patch)
tree54bc0fc49016491e3e4dba368af59290244d2cbf /src/emu/debug/debugcmd.cpp
parentacbec54361b3d87edd4c72d8e4603e619b04176a (diff)
Revert "Remove fileio.h from emu.h"
This reverts commit 0cb0cfd4c66915b43929d496fb694445fd7ab6ea.
Diffstat (limited to 'src/emu/debug/debugcmd.cpp')
-rw-r--r--src/emu/debug/debugcmd.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/emu/debug/debugcmd.cpp b/src/emu/debug/debugcmd.cpp
index 9b68c234d2f..b8de0298432 100644
--- a/src/emu/debug/debugcmd.cpp
+++ b/src/emu/debug/debugcmd.cpp
@@ -21,7 +21,6 @@
#include "debugger.h"
#include "emuopts.h"
-#include "fileio.h"
#include "natkeyboard.h"
#include "render.h"
#include "screen.h"
@@ -2192,7 +2191,8 @@ void debugger_commands::execute_rplist(const std::vector<std::string> &params)
void debugger_commands::execute_statesave(const std::vector<std::string> &params)
{
- m_machine.immediate_save(params[0]);
+ const std::string &filename(params[0]);
+ m_machine.immediate_save(filename.c_str());
m_console.printf("State save attempted. Please refer to window message popup for results.\n");
}
@@ -2203,7 +2203,8 @@ void debugger_commands::execute_statesave(const std::vector<std::string> &params
void debugger_commands::execute_stateload(const std::vector<std::string> &params)
{
- m_machine.immediate_load(params[0]);
+ const std::string &filename(params[0]);
+ m_machine.immediate_load(filename.c_str());
// clear all PC & memory tracks
for (device_t &device : device_enumerator(m_machine.root_device()))
@@ -4258,7 +4259,7 @@ void debugger_commands::execute_unmount(const std::vector<std::string> &params)
void debugger_commands::execute_input(const std::vector<std::string> &params)
{
- m_machine.natkeyboard().post_coded(params[0]);
+ m_machine.natkeyboard().post_coded(params[0].c_str());
}