Skip to content

Commit

Permalink
Update FCLauncher.java
Browse files Browse the repository at this point in the history
  • Loading branch information
ShirosakiMio committed Jan 3, 2025
1 parent ca9f768 commit 283efee
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions FCLauncher/src/main/java/com/tungsten/fclauncher/FCLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> 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 {
Expand Down

0 comments on commit 283efee

Please sign in to comment.