SDL: fixed a crash in SDL2 Java code

This commit is contained in:
Sergii Pylypenko
2022-01-09 19:42:33 +02:00
parent 8d50979447
commit 2f2a2b4fa4
2 changed files with 10 additions and 0 deletions

View File

@@ -161,6 +161,7 @@ public class MainActivity extends org.libsdl.app.SDLActivity {
if (ret.size() >= 1) {
ret.remove(0);
}
Log.i("SDL", "Commandline arguments: '" + String.join("', '", ret) + "'");
return ret.toArray(new String[0]);
}