Fix retrieving command line flags in Android.

This commit is contained in:
Tareq Anuar 2023-10-28 15:53:48 +08:00
parent f497156e0b
commit ee31f2457f
No known key found for this signature in database
GPG Key ID: 30323CC74D8E3018
1 changed files with 1 additions and 1 deletions

View File

@ -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