mirror of
https://github.com/holub/mame
synced 2025-06-02 02:49:44 +03:00
added new line support for autoboot command (nw)
This commit is contained in:
parent
e6672e7cfe
commit
a2755e50a9
@ -235,7 +235,10 @@ const char *running_machine::describe_context()
|
||||
TIMER_CALLBACK_MEMBER(running_machine::autoboot_callback)
|
||||
{
|
||||
if (strlen(options().autoboot_command())!=0) {
|
||||
ioport().natkeyboard().post_utf8(options().autoboot_command());
|
||||
astring val = astring(options().autoboot_command());
|
||||
val.replace("\\n","\n");
|
||||
val.replace("\\r","\r");
|
||||
ioport().natkeyboard().post_utf8(val);
|
||||
ioport().natkeyboard().post_utf8("\r");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user