Fixed a crash legacy issue when emulator launches in Alpine mode without a valid rom
[clinton/Virtual-Jaguar-Rx.git] / src / gui / mainwin.cpp
index 7b14d7e..ff0e195 100644 (file)
@@ -1075,7 +1075,7 @@ static uint32_t ntscTickCount;
                // Otherwise, run the Jaguar simulation\r
                HandleGamepads();\r
                JaguarExecuteNew();\r
-               if (!vjs.softTypeDebugger)\r
+               //if (!vjs.softTypeDebugger)\r
                        videoWidget->HandleMouseHiding();\r
 \r
 static uint32_t refresh = 0;\r
@@ -1140,7 +1140,7 @@ void MainWin::TogglePowerState(void)
        if (!powerButtonOn)\r
        {\r
                // Restore the mouse pointer, if hidden:\r
-               if (!vjs.softTypeDebugger)\r
+               //if (!vjs.softTypeDebugger)\r
                {\r
                        videoWidget->CheckAndRestoreMouseCursor();\r
                }\r
@@ -1410,8 +1410,8 @@ void MainWin::LoadSoftware(QString file)
        }\r
        else\r
        {\r
-               // Prevent the Alpine mode to crash in case of software without a start address\r
-               if (vjs.hardwareTypeAlpine && !jaguarRunAddress)\r
+               // Prevent the launch in case of software without a start address and without BIOS presence\r
+               if (!vjs.useJaguarBIOS && !jaguarRunAddress)\r
                {\r
                        ToggleRunState();\r
                }\r