v0.2.3: changes to error handling for corrupted save information (should pop up with a more helpful error, instead of a crash).
This commit is contained in:
parent
23a644403b
commit
a12f41f612
|
@ -52,8 +52,10 @@ public class InterlevelScene extends PixelScene {
|
|||
private static final String TXT_RETURNING = "Returning...";
|
||||
private static final String TXT_FALLING = "Falling...";
|
||||
|
||||
private static final String ERR_FILE_NOT_FOUND = "File not found. For some reason.";
|
||||
private static final String ERR_GENERIC = "Something went wrong..." ;
|
||||
private static final String ERR_FILE_NOT_FOUND = "Save file not found. If this error persists after restarting, " +
|
||||
"it may mean this save game is corrupted. Sorry about that.";
|
||||
private static final String ERR_IO = "Cannot read save file. If this error persists after restarting, " +
|
||||
"it may mean this save game is corrupted. Sorry about that.";
|
||||
|
||||
public static enum Mode {
|
||||
DESCEND, ASCEND, CONTINUE, RESURRECT, RETURN, FALL
|
||||
|
@ -203,7 +205,7 @@ public class InterlevelScene extends PixelScene {
|
|||
|
||||
} catch (IOException e ) {
|
||||
|
||||
error = ERR_GENERIC;
|
||||
error = ERR_IO;
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user