Catch (nearly) all exceptions thrown by OsuParser.

- Properly handle bad input and log a warning.  The game may run with some gameplay errors (ex. if no base TimingPoint is parsed), but it should not crash.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2014-07-24 13:38:59 -04:00
parent 39dcdf6dee
commit 83e486054f
2 changed files with 222 additions and 171 deletions

View File

@@ -755,6 +755,7 @@ public class Game extends BasicGameState {
breakTime = 0;
breakSound = false;
timingPointIndex = 0;
beatLengthBase = beatLength = 1;
pauseTime = -1;
pausedMouseX = -1;
pausedMouseY = -1;