mirror of
https://github.com/AndorsTrailRelease/andors-trail.git
synced 2026-01-06 19:45:42 +01:00
Compare commits
2 Commits
Chriz76-pa
...
bb_loadgam
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1020f81b9 | ||
|
|
32a0f69a63 |
@@ -175,7 +175,21 @@ public final class Savegames {
|
|||||||
public FileHeader(DataInputStream src) throws IOException {
|
public FileHeader(DataInputStream src) throws IOException {
|
||||||
int fileversion = src.readInt();
|
int fileversion = src.readInt();
|
||||||
if (fileversion == 11) fileversion = 5; // Fileversion 5 had no version identifier, but the first byte was 11.
|
if (fileversion == 11) fileversion = 5; // Fileversion 5 had no version identifier, but the first byte was 11.
|
||||||
this.fileversion = fileversion;
|
|
||||||
|
//Temporary workaround due to release error on the blackberry port.
|
||||||
|
if (fileversion == 104) { //bogus fileversion on BB for v0.7.0
|
||||||
|
this.fileversion = 39; //fileversion used for 0.7.0 : allows the parser to make the correct assumptions.
|
||||||
|
} else if (fileversion == 106 ){ //bogus fileversion on BB for v0.7.1
|
||||||
|
this.fileversion = 42;
|
||||||
|
} else {
|
||||||
|
this.fileversion = fileversion;
|
||||||
|
}
|
||||||
|
//End of workaround.
|
||||||
|
|
||||||
|
//Original code.
|
||||||
|
//this.fileversion = fileversion;
|
||||||
|
//End of original code.
|
||||||
|
|
||||||
if (fileversion >= 14) { // Before fileversion 14 (0.6.7), we had no file header.
|
if (fileversion >= 14) { // Before fileversion 14 (0.6.7), we had no file header.
|
||||||
this.playerName = src.readUTF();
|
this.playerName = src.readUTF();
|
||||||
this.displayInfo = src.readUTF();
|
this.displayInfo = src.readUTF();
|
||||||
|
|||||||
Reference in New Issue
Block a user