mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
removed save of unpacked quest data
This commit is contained in:
@@ -70,7 +70,7 @@ public class QuestDataIO {
|
|||||||
xStream.registerConverter(new CardPoolToXml());
|
xStream.registerConverter(new CardPoolToXml());
|
||||||
xStream.alias("CardPool", CardPool.class);
|
xStream.alias("CardPool", CardPool.class);
|
||||||
data = (QuestData) xStream.fromXML(xml.toString());
|
data = (QuestData) xStream.fromXML(xml.toString());
|
||||||
|
|
||||||
if (data.versionNumber != QuestData.CURRENT_VERSION_NUMBER) {
|
if (data.versionNumber != QuestData.CURRENT_VERSION_NUMBER) {
|
||||||
updateSaveFile(data, xml.toString());
|
updateSaveFile(data, xml.toString());
|
||||||
}
|
}
|
||||||
@@ -122,12 +122,12 @@ public class QuestDataIO {
|
|||||||
if (gearLevel == 2) {
|
if (gearLevel == 2) {
|
||||||
newData.inventory.setItemLevel("Zeppelin", 1);
|
newData.inventory.setItemLevel("Zeppelin", 1);
|
||||||
}
|
}
|
||||||
break;
|
// fall-through
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
|
// nothing to do here, everything is managed by CardPoolToXml deserializer
|
||||||
|
break;
|
||||||
|
default:
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//mark the QD as the latest version
|
//mark the QD as the latest version
|
||||||
@@ -156,10 +156,10 @@ public class QuestDataIO {
|
|||||||
zout.flush();
|
zout.flush();
|
||||||
zout.close();
|
zout.close();
|
||||||
|
|
||||||
BufferedOutputStream boutUnp = new BufferedOutputStream(new FileOutputStream(f + ".xml"));
|
//BufferedOutputStream boutUnp = new BufferedOutputStream(new FileOutputStream(f + ".xml"));
|
||||||
xStream.toXML(qd, boutUnp);
|
//xStream.toXML(qd, boutUnp);
|
||||||
boutUnp.flush();
|
//boutUnp.flush();
|
||||||
boutUnp.close();
|
//boutUnp.close();
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
ErrorViewer.showError(ex, "Error saving Quest Data.");
|
ErrorViewer.showError(ex, "Error saving Quest Data.");
|
||||||
|
|||||||
Reference in New Issue
Block a user