From 9ebf6e0ee1a5264651b5e54e52ffa12e480978a4 Mon Sep 17 00:00:00 2001 From: sowgro Date: Wed, 24 May 2023 09:26:38 -0400 Subject: small changes to the metadata and BookBetrayal --- src/main/SettingsController.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/main/SettingsController.java') 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) { -- cgit v1.2.3