Search in sources :

Example 1 with InterstitialPoint

use of com.watabou.noosa.InterstitialPoint in project pixel-dungeon-remix by NYRDS.

the class WndSaveSlotSelect method onSelect.

protected void onSelect(int index) {
    final InterstitialPoint returnTo = this;
    if (saving) {
        try {
            Dungeon.save();
            slot = slotNameFromIndexAndMod(index);
            SaveUtils.copySaveToSlot(slot, Dungeon.heroClass);
        } catch (Exception e) {
            throw new TrackedRuntimeException(e);
        }
    }
    Game.softPaused = true;
    slot = getSlotToLoad(index);
    if (PixelDungeon.donated() < 1) {
        Ads.displaySaveAndLoadAd(returnTo);
    } else {
        returnToWork(true);
    }
}
Also used : TrackedRuntimeException(com.nyrds.android.util.TrackedRuntimeException) InterstitialPoint(com.watabou.noosa.InterstitialPoint) TrackedRuntimeException(com.nyrds.android.util.TrackedRuntimeException)

Aggregations

TrackedRuntimeException (com.nyrds.android.util.TrackedRuntimeException)1 InterstitialPoint (com.watabou.noosa.InterstitialPoint)1