aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2023-05-24 09:26:38 -0400
committersowgro <tpoke.ferrari@gmail.com>2023-05-24 09:26:38 -0400
commit9ebf6e0ee1a5264651b5e54e52ffa12e480978a4 (patch)
treedf47e4c568099b70835a28e3f7d0ad7aa008aadb /src/main
parent9bae9df46497e020e651e0941ca5cec71c2891fc (diff)
downloadNPEhero-9ebf6e0ee1a5264651b5e54e52ffa12e480978a4.tar.gz
NPEhero-9ebf6e0ee1a5264651b5e54e52ffa12e480978a4.tar.bz2
NPEhero-9ebf6e0ee1a5264651b5e54e52ffa12e480978a4.zip
small changes to the metadata and BookBetrayal
Diffstat (limited to 'src/main')
-rw-r--r--src/main/SettingsController.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/main/SettingsController.java b/src/main/SettingsController.java
index 0dcf707..2fe0792 100644
--- a/src/main/SettingsController.java
+++ b/src/main/SettingsController.java
@@ -1,14 +1,11 @@
package main;
-import java.util.Map;
-import java.util.HashMap;
import java.io.FileWriter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import org.json.simple.JSONObject;
-import org.json.simple.JSONArray;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
@@ -21,13 +18,11 @@ public class SettingsController
private boolean fullscreen;
private JSONObject settings;
- public void saveAndWrite(int newEffVol, int newMusVol, boolean isFull)
+ public void saveAndWrite(int newEffVol, int newMusVol)
{
settings.put("musicVol", newMusVol);
settings.put("effectsVol", newEffVol);
- settings.put("fullscreen", isFull);
-
try (FileWriter file = new FileWriter("settings.json"))
{
//write the settings JSONObject instance to the file
@@ -51,7 +46,6 @@ public class SettingsController
effectsVol.set((int) settings.get("effectsVol"));
musicVol.set((int) settings.get("musicVol"));
- fullscreen = (boolean) settings.get("fullscreen");
}
catch (FileNotFoundException e)
{