Meilleur gestion d'erreur dans Engine.init()
This commit is contained in:
parent
1f0a14bb23
commit
b363cbc9c7
@ -66,7 +66,7 @@ public class Engine {
|
||||
*/
|
||||
public void init() {
|
||||
if (!glfwInit()){
|
||||
System.exit(1);
|
||||
System.exit(-1);
|
||||
}
|
||||
|
||||
this.running = true;
|
||||
@ -83,7 +83,7 @@ public class Engine {
|
||||
assert getWindow() != NULL;
|
||||
|
||||
boolean present = glfwJoystickPresent(GLFW_JOYSTICK_1);
|
||||
System.out.println("Manette détectée : " + present);
|
||||
System.out.println("Manette détectée: " + present);
|
||||
|
||||
// On récupère les informations du moniteur principal
|
||||
GLFWVidMode vidmode = glfwGetVideoMode(glfwGetPrimaryMonitor());
|
||||
|
Loading…
x
Reference in New Issue
Block a user