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);