Open OOM gui screen instead of crash report on OOM

This commit is contained in:
johni0702
2015-06-29 09:52:46 +02:00
parent e280874120
commit 40818bd8b5
2 changed files with 32 additions and 1 deletions

View File

@@ -44,6 +44,11 @@ public class ReplayTimer extends Timer {
e.printStackTrace();
} catch (LWJGLException e) {
e.printStackTrace();
} catch (OutOfMemoryError e) {
// Disable passive mode and reset timer speed so we can use the buttons on the OOM screen
passive = false;
timerSpeed = 1;
throw e;
}
}
}