Stop motor for the right device on GameCube

This commit is contained in:
Extrems 2024-02-09 10:22:17 -05:00
parent d1379e76d7
commit dc4f39b893

View File

@ -718,10 +718,10 @@ static void prefmenu ()
else if (config.s_auto == 1) sprintf (items[2].text, "Auto Saves: SRAM ONLY"); else if (config.s_auto == 1) sprintf (items[2].text, "Auto Saves: SRAM ONLY");
else sprintf (items[2].text, "Auto Saves: NONE"); else sprintf (items[2].text, "Auto Saves: NONE");
#ifdef HW_RVL #ifdef HW_RVL
if (config.l_device == 1) sprintf (items[3].text, "ROM Load Device: USB"); if (config.l_device == TYPE_USB) sprintf (items[3].text, "ROM Load Device: USB");
else if (config.l_device == 2) sprintf (items[3].text, "ROM Load Device: DVD"); else if (config.l_device == TYPE_DVD) sprintf (items[3].text, "ROM Load Device: DVD");
#else #else
if (config.l_device == 1) sprintf (items[3].text, "ROM Load Device: DVD"); if (config.l_device == TYPE_DVD) sprintf (items[3].text, "ROM Load Device: DVD");
#endif #endif
else sprintf (items[3].text, "ROM Load Device: SD"); else sprintf (items[3].text, "ROM Load Device: SD");
if (config.s_device == 1) sprintf (items[4].text, "Saves Device: MCARD A"); if (config.s_device == 1) sprintf (items[4].text, "Saves Device: MCARD A");
@ -771,12 +771,12 @@ static void prefmenu ()
case 3: /*** Default ROM device ***/ case 3: /*** Default ROM device ***/
#ifdef HW_RVL #ifdef HW_RVL
config.l_device = (config.l_device + 1) % 3; config.l_device = (config.l_device + 1) % (TYPE_DVD + 1);
if (config.l_device == 1) sprintf (items[3].text, "ROM Load Device: USB"); if (config.l_device == TYPE_USB) sprintf (items[3].text, "ROM Load Device: USB");
else if (config.l_device == 2) sprintf (items[3].text, "ROM Load Device: DVD"); else if (config.l_device == TYPE_DVD) sprintf (items[3].text, "ROM Load Device: DVD");
#else #else
config.l_device ^= 1; config.l_device ^= 1;
if (config.l_device == 1) sprintf (items[3].text, "ROM Load Device: DVD"); if (config.l_device == TYPE_DVD) sprintf (items[3].text, "ROM Load Device: DVD");
#endif #endif
else sprintf (items[3].text, "ROM Load Device: SD"); else sprintf (items[3].text, "ROM Load Device: SD");
break; break;
@ -871,7 +871,7 @@ static void prefmenu ()
} }
/* stop DVD drive when not in use */ /* stop DVD drive when not in use */
if (config.l_device != 2) if (config.l_device != TYPE_DVD)
{ {
#ifdef HW_RVL #ifdef HW_RVL
DI_StopMotor(); DI_StopMotor();