v2.5.0: adjusted loading order for old games in progress data
This commit is contained in:
@@ -594,13 +594,8 @@ public class Dungeon {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 1/4
|
|
||||||
// 3/4 * 1/3 = 3/12 = 1/4
|
|
||||||
// 3/4 * 2/3 * 1/2 = 6/24 = 1/4
|
|
||||||
// 1/4
|
|
||||||
|
|
||||||
private static final String INIT_VER = "init_ver";
|
private static final String INIT_VER = "init_ver";
|
||||||
private static final String VERSION = "version";
|
public static final String VERSION = "version";
|
||||||
private static final String SEED = "seed";
|
private static final String SEED = "seed";
|
||||||
private static final String CUSTOM_SEED = "custom_seed";
|
private static final String CUSTOM_SEED = "custom_seed";
|
||||||
private static final String DAILY = "daily";
|
private static final String DAILY = "daily";
|
||||||
|
|||||||
@@ -103,13 +103,14 @@ public class GamesInProgress {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
Bundle bundle = FileUtils.bundleFromFile(gameFile(slot));
|
Bundle bundle = FileUtils.bundleFromFile(gameFile(slot));
|
||||||
|
|
||||||
|
if (bundle.getInt( "version" ) < ShatteredPixelDungeon.v1_4_3) {
|
||||||
|
info = null;
|
||||||
|
} else {
|
||||||
|
|
||||||
info = new Info();
|
info = new Info();
|
||||||
info.slot = slot;
|
info.slot = slot;
|
||||||
Dungeon.preview(info, bundle);
|
Dungeon.preview(info, bundle);
|
||||||
|
|
||||||
//saves from before v1.4.3 are not supported
|
|
||||||
if (info.version < ShatteredPixelDungeon.v1_4_3) {
|
|
||||||
info = null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user