From 433c8f44b1713d194eb31c795fadf5f7b40d5ec5 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 25 Mar 2016 02:35:37 +0000 Subject: [PATCH] Fix world conf not creating world.mt correctly --- app/build.gradle | 4 ++-- .../rubenwardy/minetestmodmanager/WorldConfigActivity.java | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 08483bd..8bf6104 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.rubenwardy.minetestmodmanager" minSdkVersion 9 targetSdkVersion 21 - versionCode 3 - versionName "1.1.1" + versionCode 4 + versionName "1.2.0" } buildTypes { release { diff --git a/app/src/main/java/com/rubenwardy/minetestmodmanager/WorldConfigActivity.java b/app/src/main/java/com/rubenwardy/minetestmodmanager/WorldConfigActivity.java index 968b0d7..15e5fda 100644 --- a/app/src/main/java/com/rubenwardy/minetestmodmanager/WorldConfigActivity.java +++ b/app/src/main/java/com/rubenwardy/minetestmodmanager/WorldConfigActivity.java @@ -66,7 +66,11 @@ public void onClick(DialogInterface dialog, int id) { return; } } - conf.read(conf_file); + if (!conf.read(conf_file)) { + // Create configuration file + conf.set("gameid", "minetest"); + conf.set("backend", "sqlite3"); + } Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); setSupportActionBar(toolbar);