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:
parent
fe293827e6
commit
ddcbed20b2
|
@ -148,6 +148,11 @@ public class Opsu extends StateBasedGame {
|
|||
|
||||
app.start();
|
||||
} catch (SlickException 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user