From 3a137b0ff007b3e249db7f18e25309b61bbd9226 Mon Sep 17 00:00:00 2001 From: yugecin Date: Sat, 10 Dec 2016 14:46:46 +0100 Subject: [PATCH] allow seticon to fail (close #85) --- src/itdelatrisu/opsu/Opsu.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/itdelatrisu/opsu/Opsu.java b/src/itdelatrisu/opsu/Opsu.java index 64dbe3ae..78872003 100644 --- a/src/itdelatrisu/opsu/Opsu.java +++ b/src/itdelatrisu/opsu/Opsu.java @@ -208,7 +208,11 @@ public class Opsu extends StateBasedGame { // basic game settings Options.setDisplayMode(app); String[] icons = { "icon16.png", "icon32.png" }; - app.setIcons(icons); + try { + app.setIcons(icons); + } catch (Exception e) { + Log.error("could not set icon"); + } app.setForceExit(true); app.start();