Closed GoogleCodeExporter closed 9 years ago
It seems that the cause of this problem is that DebugGameState simply calls
System.exit to exit the program as opposed to SimpleGame which uses the
AbstractGame.finish method.
If I pass the StandardGame instance to the DebugGameState instance and call
StandardGame.finish instead of System.exit there is no VM error.
The attached patch demonstrates this workaround.
Original comment by so@deluxe-design.at
on 25 Jun 2009 at 5:23
Attachments:
The problem here is, that DebugGameState or GameStates in common can also be
used
with other game implementations.
So passing StandardGame and calling game.finish() is not a good solution.
Using AbstractGame instead StandardGame should work tho.
Original comment by christoph.luder
on 9 Jul 2009 at 6:39
fixed with r5142
Original comment by christoph.luder
on 23 Apr 2010 at 8:42
Original issue reported on code.google.com by
so@deluxe-design.at
on 25 Jun 2009 at 4:38