remove saves (temporarily?) since they don't really work

This commit is contained in:
OMGeeky
2025-06-24 21:51:41 +02:00
parent a3ffecfd23
commit 7929ffe2a7
2 changed files with 10 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -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 {