Added error message when running JAR in path containing '!'. (issue #5)

- See: http://bugs.java.com/view_bug.do?bug_id=4523159

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han 2014-07-19 13:01:23 -04:00
parent fe293827e6
commit ddcbed20b2

View File

@ -148,7 +148,12 @@ public class Opsu extends StateBasedGame {
app.start();
} catch (SlickException e) {
Log.error("Error while creating game container.", e);
// JARs will not run properly inside directories containing '!'
// http://bugs.java.com/view_bug.do?bug_id=4523159
if (new File("").getAbsolutePath().contains("!"))
Log.error("Cannot run JAR from path containing '!'.");
else
Log.error("Error while creating game container.", e);
}
}