File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
desktop/src/com/miloshpetrov/sol2/desktop Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 99import com .miloshpetrov .sol2 .SolFileReader ;
1010import com .miloshpetrov .sol2 .game .DebugOptions ;
1111import com .miloshpetrov .sol2 .soundtest .SoundTestListener ;
12+ import org .lwjgl .Sys ;
1213
1314import java .io .BufferedReader ;
1415import java .io .FileReader ;
@@ -54,6 +55,14 @@ public static void main(String[] argv) {
5455 c .addIcon (DebugOptions .DEV_ROOT_PATH + "res/icon.png" , Files .FileType .Absolute );
5556 }
5657
58+ Thread .setDefaultUncaughtExceptionHandler (new Thread .UncaughtExceptionHandler () {
59+ @ Override
60+ public void uncaughtException (Thread thread , final Throwable ex ) {
61+ System .err .println ("Critical Failure" + ex .getLocalizedMessage ());
62+ Sys .alert ("Critical Failure" , ex .getLocalizedMessage ());
63+ }
64+ });
65+
5766 new LwjglApplication (new SolApplication (), c );
5867 }
5968
You can’t perform that action at this time.
0 commit comments