From d9f810691b983301d8d53d53b2931d3978b48b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20M=C3=BCller?= Date: Fri, 17 May 2024 19:52:50 +0200 Subject: [PATCH] Remove duplicate dynamic loading of game library SDL automatically loads the libraries specified in the array returned by the `getLibraries` method, so loading it manually is unnecessary. SDL also has additional error handling to quit the app with an appropriate error message popup if the library could not be loaded, which was not handled previously. --- scripts/android/files/java/org/ddnet/client/NativeMain.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/android/files/java/org/ddnet/client/NativeMain.java b/scripts/android/files/java/org/ddnet/client/NativeMain.java index 890fc8c7f..646ccb509 100644 --- a/scripts/android/files/java/org/ddnet/client/NativeMain.java +++ b/scripts/android/files/java/org/ddnet/client/NativeMain.java @@ -6,16 +6,10 @@ import android.os.Bundle; import android.content.pm.ActivityInfo; public class NativeMain extends SDLActivity { - static { - System.loadLibrary("DDNet"); - } @Override protected String[] getLibraries() { return new String[] { - // disable hid API for now - // "hidapi", - // "SDL2", "DDNet", }; }