summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-10-06 01:15:12 +0600
committerilotterytea <iltsu@alright.party>2022-10-06 01:15:12 +0600
commitc9bb9b34d005a9f396e4963c6f077d3a92a272fe (patch)
tree1312031b429d575eeb623b4a18f6240125d93e65
parent97ce7194a79e6f52ec138cd9d91ef7bf1de4fd94 (diff)
garbage cuz game has more than 1 savegame slot
-rw-r--r--core/src/com/ilotterytea/maxoning/MaxonGame.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/src/com/ilotterytea/maxoning/MaxonGame.java b/core/src/com/ilotterytea/maxoning/MaxonGame.java
index 6f26b12..0ad6a8d 100644
--- a/core/src/com/ilotterytea/maxoning/MaxonGame.java
+++ b/core/src/com/ilotterytea/maxoning/MaxonGame.java
@@ -6,10 +6,8 @@ import com.badlogic.gdx.Preferences;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
-import com.ilotterytea.maxoning.player.MaxonPlayer;
import com.ilotterytea.maxoning.screens.SplashScreen;
import com.ilotterytea.maxoning.utils.I18N;
-import com.ilotterytea.maxoning.utils.serialization.GameDataSystem;
import java.io.IOException;
@@ -36,14 +34,6 @@ public class MaxonGame extends Game {
prefs = Gdx.app.getPreferences("Maxoning");
locale = new I18N(Gdx.files.internal("i18n/" + prefs.getString("lang", "en_us") + ".json"));
- if (!GameDataSystem.exists()) {
- try {
- GameDataSystem.SaveData(new MaxonPlayer());
- } catch (IOException e) {
- throw new RuntimeException(e);
- }
- }
-
prefs.putInteger("width", Gdx.graphics.getWidth());
prefs.putInteger("height", Gdx.graphics.getHeight());
prefs.flush();