From 9af3b6bd500f16ba0f0c579ef89dbf50239de746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 31 Jan 2016 01:46:31 +0100 Subject: RustAndDust: setup DB --- core/src/ch/asynk/rustanddust/RustAndDust.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index 146b982..c675966 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -56,12 +56,15 @@ public class RustAndDust extends Game public static final String DOM = "RustAndDust"; + public static final String DB_FILE = "data/rustanddust.sqlite"; + public AssetManager manager; public Factory factory; public Ctrl ctrl; public Config config; public int hudCorrection; public Backend backend; + public DB db; public TextureAtlas uiAtlas; public BitmapFont font; @@ -102,6 +105,9 @@ public class RustAndDust extends Game this.hudCorrection = ((int) (125 * Gdx.graphics.getDensity()) - 75); debug("RustAndDust", "create() [" + Gdx.graphics.getWidth() + ";" + Gdx.graphics.getHeight() + "] " + Gdx.graphics.getDensity() + " -> " + hudCorrection); + db = new DB(Gdx.files.internal(DB_FILE).path()); + db.setup(); + manager = new AssetManager(); factory = new Factory(this); config = new Config(); -- cgit v1.1-2-g2b99