Pārlūkot izejas kodu

expand the example to whole function

WSQS 3 mēneši atpakaļ
vecāks
revīzija
fe150bdac1
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      tutorials/platform/android/android_library.rst

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

@@ -179,7 +179,14 @@ Below we break-down the steps used to create the GLTF Viewer app.
   to the Android app's ``assets`` directory.
   Using this approach requires passing the ``--main-pack <pck_or_zip_filepath_relative_to_assets_dir>`` argument to the hosted Godot Engine instance using `GodotHost#getCommandLine() <https://github.com/godotengine/godot/blob/6916349697a4339216469e9bf5899b983d78db07/platform/android/java/lib/src/org/godotengine/godot/GodotHost.java#L45>`_.
 
-  Example:``return List.of("--main-pack","ref://foo.pck");``
+  Example:````
+
+.. code-block:: java
+
+@Overrude
+public List<String> getCommandLine(){
+    return List.of("--main-pack","res://foo.pck");
+}
 
   The instructions below and the sample app follow the first approach of creating the Godot project in the Android app's ``assets`` directory.