mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-02-23 15:38:23 +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 transient BookmarksRoot bookmarks;
|
||||||
|
|
||||||
|
|
||||||
public SavedGamesSet saves; //For simulations.
|
// public SavedGamesSet saves; //For simulations.
|
||||||
|
|
||||||
public transient SavedSlotCollection v;
|
public transient SavedSlotCollection v;
|
||||||
|
|
||||||
@@ -113,13 +113,13 @@ public class Project implements ProjectTreeNode, Serializable {
|
|||||||
createdContent = new GameSource(this, GameSource.Type.created);
|
createdContent = new GameSource(this, GameSource.Type.created);
|
||||||
bookmarks = new BookmarksRoot(this);
|
bookmarks = new BookmarksRoot(this);
|
||||||
|
|
||||||
saves = new SavedGamesSet(this);
|
// saves = new SavedGamesSet(this);
|
||||||
|
|
||||||
v.add(createdContent);
|
v.add(createdContent);
|
||||||
v.add(alteredContent);
|
v.add(alteredContent);
|
||||||
// v.add(referencedContent);
|
// v.add(referencedContent);
|
||||||
v.add(baseContent);
|
v.add(baseContent);
|
||||||
v.add(saves);
|
// v.add(saves);
|
||||||
v.add(bookmarks);
|
v.add(bookmarks);
|
||||||
|
|
||||||
linkAll();
|
linkAll();
|
||||||
@@ -244,14 +244,14 @@ public class Project implements ProjectTreeNode, Serializable {
|
|||||||
createdContent = new GameSource(this, GameSource.Type.created);
|
createdContent = new GameSource(this, GameSource.Type.created);
|
||||||
bookmarks = new BookmarksRoot(this);
|
bookmarks = new BookmarksRoot(this);
|
||||||
|
|
||||||
saves.refreshTransients();
|
// saves.refreshTransients();
|
||||||
|
|
||||||
v = new SavedSlotCollection();
|
v = new SavedSlotCollection();
|
||||||
v.add(createdContent);
|
v.add(createdContent);
|
||||||
v.add(alteredContent);
|
v.add(alteredContent);
|
||||||
// v.add(referencedContent);
|
// v.add(referencedContent);
|
||||||
v.add(baseContent);
|
v.add(baseContent);
|
||||||
v.add(saves);
|
// v.add(saves);
|
||||||
v.add(bookmarks);
|
v.add(bookmarks);
|
||||||
|
|
||||||
|
|
||||||
@@ -982,7 +982,7 @@ public class Project implements ProjectTreeNode, Serializable {
|
|||||||
|
|
||||||
|
|
||||||
public void addSave(File selectedFile) {
|
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.Notification;
|
||||||
import com.gpl.rpg.atcontentstudio.io.JsonPrettyWriter;
|
import com.gpl.rpg.atcontentstudio.io.JsonPrettyWriter;
|
||||||
|
import com.gpl.rpg.atcontentstudio.io.JsonSerializable;
|
||||||
import org.json.simple.JSONArray;
|
import org.json.simple.JSONArray;
|
||||||
import org.json.simple.JSONObject;
|
import org.json.simple.JSONObject;
|
||||||
|
|
||||||
@@ -17,6 +18,9 @@ import java.util.zip.ZipOutputStream;
|
|||||||
|
|
||||||
public class FileUtils {
|
public class FileUtils {
|
||||||
|
|
||||||
|
public static String toJsonString(JsonSerializable jsonSerializable) {
|
||||||
|
return toJsonString(jsonSerializable.toMap());
|
||||||
|
}
|
||||||
public static String toJsonString(Map json) {
|
public static String toJsonString(Map json) {
|
||||||
StringWriter writer = new JsonPrettyWriter();
|
StringWriter writer = new JsonPrettyWriter();
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user