added new line support for autoboot command (nw)

This commit is contained in:
Miodrag Milanovic 2013-05-08 11:02:56 +00:00
parent e6672e7cfe
commit a2755e50a9

View File

@ -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");
}
}