diff options
| author | ilotterytea <iltsu@alright.party> | 2022-10-06 01:15:12 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-10-06 01:15:12 +0600 |
| commit | c9bb9b34d005a9f396e4963c6f077d3a92a272fe (patch) | |
| tree | 1312031b429d575eeb623b4a18f6240125d93e65 /core/src | |
| parent | 97ce7194a79e6f52ec138cd9d91ef7bf1de4fd94 (diff) | |
garbage cuz game has more than 1 savegame slot
Diffstat (limited to 'core/src')
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/MaxonGame.java | 10 |
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(); |
