diff --git a/Projects/Android/AndroidManifest.xml b/Projects/Android/AndroidManifest.xml index da5e543..995a99a 100644 --- a/Projects/Android/AndroidManifest.xml +++ b/Projects/Android/AndroidManifest.xml @@ -1,8 +1,8 @@ @@ -14,7 +14,7 @@ - + 0 && results[0] == PackageManager.PERMISSION_GRANTED) { - permissionCount++; - } - else - { - System.exit(0); - } - } - - if (requestCode == WRITE_EXTERNAL_STORAGE_PERMISSION_ID) { - if (results.length > 0 && results[0] == PackageManager.PERMISSION_GRANTED) { - permissionCount++; - } - else - { - System.exit(0); - } - } - - checkPermissionsAndInitialize(); + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + create(); } - public void create() throws ErrnoException { + public void create() { //This will copy the shareware version of quake if user doesn't have anything installed copy_asset(dir + "/id1", "pak0.pak"); copy_asset(dir + "/id1", "config.cfg"); copy_asset(dir, "commandline.txt"); - setenv("QUAKEQUEST_DIR", dir, true); + try { + setenv("QUAKEQUEST_DIR", dir, true); + } catch (Exception ignored) + { + System.exit(-9);; + } //Read these from a file and pass through commandLineParams = new String("quake");