platform, fix pad setting from configs files
authorkub <derkub@gmail.com>
Tue, 7 Dec 2021 20:07:34 +0000 (21:07 +0100)
committerkub <derkub@gmail.com>
Tue, 7 Dec 2021 20:07:34 +0000 (21:07 +0100)
platform/common/emu.c

index ddfac49..1b3e708 100644 (file)
@@ -508,6 +508,9 @@ int emu_reload_rom(const char *rom_fname_in)
        }\r
        else\r
        {\r
+               PicoSetInputDevice(0, currentConfig.input_dev0);\r
+               PicoSetInputDevice(1, currentConfig.input_dev1);\r
+\r
                system_announce();\r
                PicoIn.opt &= ~POPT_DIS_VDP_FIFO;\r
        }\r
@@ -1288,9 +1291,6 @@ void emu_init(void)
        PicoIn.mcdTrayClose = emu_tray_close;\r
 \r
        sndout_init();\r
-\r
-       PicoSetInputDevice(0, currentConfig.input_dev0);\r
-       PicoSetInputDevice(1, currentConfig.input_dev1);\r
 }\r
 \r
 void emu_finish(void)\r