v0.4.3a: added error reporting support to bundles

Not the most elegant solution, but it works all the same
This commit is contained in:
Evan Debenham
2016-10-19 18:10:38 -04:00
parent 0ca487094d
commit ed21521670
2 changed files with 50 additions and 13 deletions
@@ -163,6 +163,14 @@ public class ShatteredPixelDungeon extends Game {
com.shatteredpixel.shatteredpixeldungeon.items.armor.glyphs.Repulsion.class,
"com.shatteredpixel.shatteredpixeldungeon.items.armor.glyphs.Stench" );
com.watabou.utils.Bundle.exceptionReporter =
new com.watabou.utils.Bundle.BundleExceptionCallback() {
@Override
public void call(Throwable t) {
ShatteredPixelDungeon.reportException(t);
}
};
}
@SuppressWarnings("deprecation")