From ee31f2457fd8e79095d02addebf29f98d77dd611 Mon Sep 17 00:00:00 2001 From: Tareq Anuar Date: Sat, 28 Oct 2023 15:53:48 +0800 Subject: [PATCH] Fix retrieving command line flags in Android. --- platform/android/java/lib/src/org/godotengine/godot/Godot.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt index 857f239e966..38961bcda80 100644 --- a/platform/android/java/lib/src/org/godotengine/godot/Godot.kt +++ b/platform/android/java/lib/src/org/godotengine/godot/Godot.kt @@ -906,7 +906,7 @@ class Godot(private val context: Context) : SensorEventListener { val arg = ByteArray(strlen) r = inputStream.read(arg) if (r == strlen) { - cmdline[i] = String(arg, StandardCharsets.UTF_8) + cmdline.add(String(arg, StandardCharsets.UTF_8)) } } cmdline