From b363cbc9c7a4e5939ecc0a174bb93e41c18d3db9 Mon Sep 17 00:00:00 2001 From: Antoine Date: Thu, 10 Jun 2021 14:22:45 +0200 Subject: [PATCH] Meilleur gestion d'erreur dans Engine.init() --- src/engine/Engine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/Engine.java b/src/engine/Engine.java index 8b84449..2f4be33 100644 --- a/src/engine/Engine.java +++ b/src/engine/Engine.java @@ -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());