Rinnegatamante / easyrpg-player-3ds

EasyRPG Player port for 3DS.
GNU General Public License v3.0
13 stars 1 forks source link

System crash when an error occurs #16

Open Rinnegatamante opened 8 years ago

Rinnegatamante commented 8 years ago

Whenever an error occurs that needs EasyRPG shutdown, it will cause a system crash with an hard-reboot.

Ghabry commented 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)

Ghabry commented 8 years ago

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.

https://github.com/EasyRPG/Player/issues/858