Open Rinnegatamante opened 8 years ago
The Output::Error case calls DisplayUi.reset()
followed by exit(1)
.
So when something must go, place it in the ctrui destructor.
Any other cleanup code will not run (which is not really an issue on real operating systems because they remove the garbage you left)
But because EasyRPG has a game browser in the meanwhile this is actually a design error because it doesn't make sense anymore to terminate everything when a game error occurs. Should only shutdown the game... Creating an issue in the normal Player repo.
Whenever an error occurs that needs EasyRPG shutdown, it will cause a system crash with an hard-reboot.