Selaa lähdekoodia

include the results from the parent in the method

WSQS 3 kuukautta sitten
vanhempi
commit
a8465aa8e5
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      tutorials/platform/android/android_library.rst

+ 5 - 1
tutorials/platform/android/android_library.rst

@@ -185,7 +185,11 @@ Below we break-down the steps used to create the GLTF Viewer app.
 
 @Override
 public List<String> getCommandLine(){
-    return List.of("--main-pack","res://foo.pck");
+    List<String> results = new ArrayList<>();
+    results.addAll(super.getCommandLine());
+    results.add("--main-pack");
+    results.add("res://foo.pck");
+    return results;
 }
 
   The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.