diff --git a/FCLauncher/src/main/java/com/tungsten/fclauncher/FCLauncher.java b/FCLauncher/src/main/java/com/tungsten/fclauncher/FCLauncher.java index 205255f6d..2d458de2c 100644 --- a/FCLauncher/src/main/java/com/tungsten/fclauncher/FCLauncher.java +++ b/FCLauncher/src/main/java/com/tungsten/fclauncher/FCLauncher.java @@ -354,6 +354,18 @@ private static void setupGraphicAndSoundEngine(FCLConfig config, FCLBridge bridg bridge.dlopen(nativeDir + "/libopenal.so"); if (config.getRenderer() == FCLConfig.Renderer.RENDERER_CUSTOM) { + List envList; + if (FCLBridge.BACKEND_IS_BOAT) { + envList = RendererPlugin.getSelected().getBoatEnv(); + } else { + envList = RendererPlugin.getSelected().getPojavEnv(); + } + envList.forEach(env -> { + String[] split = env.split("="); + if (split[0].equals("DLOPEN")) { + bridge.dlopen(RendererPlugin.getSelected().getPath() + "/" + split[1]); + } + }); bridge.dlopen(RendererPlugin.getSelected().getPath() + "/" + RendererPlugin.getSelected().getGlName()); // bridge.dlopen(RendererPlugin.getSelected().getPath() + "/" + RendererPlugin.getSelected().getEglName()); } else {