From b2ae1e562a8eb309fd362b4f4307d72262e5cfd7 Mon Sep 17 00:00:00 2001 From: sorgelig Date: Sat, 11 Apr 2020 20:12:04 +0800 Subject: [PATCH] Add arcade launching cmd. --- input.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/input.cpp b/input.cpp index 541e44b..4f9e1cc 100644 --- a/input.cpp +++ b/input.cpp @@ -26,6 +26,7 @@ #include "osd.h" #include "video.h" #include "joymapping.h" +#include "support.h" #define NUMDEV 30 #define NUMPLAYERS 6 @@ -2743,7 +2744,7 @@ void mergedevs() if(input[i].pid == 0x05E1) //XM-10 2 player USB Encoder continue; } - + input[i].bind = i; if (input[i].id[0] && !input[i].mouse) { @@ -3429,7 +3430,12 @@ int input_test(int getchar) cmd[len] = 0; printf("MiSTer_cmd: %s\n", cmd); if (!strncmp(cmd, "fb_cmd", 6)) video_cmd(cmd); - else if (!strncmp(cmd, "load_core ", 10)) fpga_load_rbf(cmd + 10); + else if (!strncmp(cmd, "load_core ", 10)) + { + len = strlen(cmd); + if (len > 4 && !strcasecmp(cmd + len - 4, ".mra")) arcade_load(cmd + 10); + else fpga_load_rbf(cmd + 10); + } } }