mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-26 15:57:22 +01:00
remove saves (temporarily?) since they don't really work
This commit is contained in:
@@ -64,7 +64,7 @@ public class Project implements ProjectTreeNode, Serializable {
|
||||
public transient BookmarksRoot bookmarks;
|
||||
|
||||
|
||||
public SavedGamesSet saves; //For simulations.
|
||||
// public SavedGamesSet saves; //For simulations.
|
||||
|
||||
public transient SavedSlotCollection v;
|
||||
|
||||
@@ -113,13 +113,13 @@ public class Project implements ProjectTreeNode, Serializable {
|
||||
createdContent = new GameSource(this, GameSource.Type.created);
|
||||
bookmarks = new BookmarksRoot(this);
|
||||
|
||||
saves = new SavedGamesSet(this);
|
||||
// saves = new SavedGamesSet(this);
|
||||
|
||||
v.add(createdContent);
|
||||
v.add(alteredContent);
|
||||
// v.add(referencedContent);
|
||||
v.add(baseContent);
|
||||
v.add(saves);
|
||||
// v.add(saves);
|
||||
v.add(bookmarks);
|
||||
|
||||
linkAll();
|
||||
@@ -244,14 +244,14 @@ public class Project implements ProjectTreeNode, Serializable {
|
||||
createdContent = new GameSource(this, GameSource.Type.created);
|
||||
bookmarks = new BookmarksRoot(this);
|
||||
|
||||
saves.refreshTransients();
|
||||
// saves.refreshTransients();
|
||||
|
||||
v = new SavedSlotCollection();
|
||||
v.add(createdContent);
|
||||
v.add(alteredContent);
|
||||
// v.add(referencedContent);
|
||||
v.add(baseContent);
|
||||
v.add(saves);
|
||||
// v.add(saves);
|
||||
v.add(bookmarks);
|
||||
|
||||
|
||||
@@ -982,7 +982,7 @@ public class Project implements ProjectTreeNode, Serializable {
|
||||
|
||||
|
||||
public void addSave(File selectedFile) {
|
||||
saves.addSave(selectedFile);
|
||||
// saves.addSave(selectedFile);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.gpl.rpg.atcontentstudio.utils;
|
||||
|
||||
import com.gpl.rpg.atcontentstudio.Notification;
|
||||
import com.gpl.rpg.atcontentstudio.io.JsonPrettyWriter;
|
||||
import com.gpl.rpg.atcontentstudio.io.JsonSerializable;
|
||||
import org.json.simple.JSONArray;
|
||||
import org.json.simple.JSONObject;
|
||||
|
||||
@@ -17,6 +18,9 @@ import java.util.zip.ZipOutputStream;
|
||||
|
||||
public class FileUtils {
|
||||
|
||||
public static String toJsonString(JsonSerializable jsonSerializable) {
|
||||
return toJsonString(jsonSerializable.toMap());
|
||||
}
|
||||
public static String toJsonString(Map json) {
|
||||
StringWriter writer = new JsonPrettyWriter();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user