mirror of
https://github.com/badvision/jace.git
synced 2024-11-28 10:52:33 +00:00
Added extra warm-start to the initial boot to help resolve one-off situations where emulator starts in a stuck state
This commit is contained in:
parent
8c648c42bb
commit
194ba729dc
@ -3,7 +3,6 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
package jace;
|
||||
|
||||
import java.io.IOException;
|
||||
@ -19,6 +18,7 @@ import javafx.stage.Stage;
|
||||
* @author blurry
|
||||
*/
|
||||
public class JaceApplication extends Application {
|
||||
|
||||
static JaceApplication singleton;
|
||||
Stage primaryStage;
|
||||
JaceUIController controller;
|
||||
@ -46,9 +46,10 @@ public class JaceApplication extends Application {
|
||||
Thread.yield();
|
||||
}
|
||||
controller.connectComputer(Emulator.computer);
|
||||
Emulator.computer.warmStart();
|
||||
});
|
||||
primaryStage.setOnCloseRequest(event -> {
|
||||
emulator.computer.deactivate();
|
||||
Emulator.computer.deactivate();
|
||||
Platform.exit();
|
||||
System.exit(0);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user