From 18f18bf2cb215412403ad1583f5239ab122cb1b7 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Thu, 9 Mar 2017 15:12:13 +0200 Subject: [PATCH] JNA: try to avoid unzipping jnidispatch.dll from jar on Windows Normally if JNA doesn't find the jnidispatch.dll it tries to extract it from the jar into a temp folder and load from there. This is being restriscted on Microsoft Apps for the app-store and this commit prevents this behaviour. --- build/build.xml | 12 ++++++++++++ build/windows/launcher/config.xml | 3 +++ build/windows/launcher/config_debug.xml | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/build/build.xml b/build/build.xml index 8c467b739..a1ba1d687 100644 --- a/build/build.xml +++ b/build/build.xml @@ -1002,6 +1002,18 @@ + + + + + + + + + + + + diff --git a/build/windows/launcher/config.xml b/build/windows/launcher/config.xml index 8f99be9e7..2abf18455 100644 --- a/build/windows/launcher/config.xml +++ b/build/windows/launcher/config.xml @@ -60,6 +60,9 @@ -splash:"%EXEDIR%/lib/splash.png" -Dsun.java2d.d3d=false -Djna.nosys=true + -Djna.nounpack=true + -Djna.boot.library.name=jnidispatch-4.2.2-win32-x86 + -Djna.boot.library.path="%EXEDIR%"/lib -DAPP_DIR="%EXEDIR%" diff --git a/build/windows/launcher/config_debug.xml b/build/windows/launcher/config_debug.xml index dbc146563..043866663 100644 --- a/build/windows/launcher/config_debug.xml +++ b/build/windows/launcher/config_debug.xml @@ -59,6 +59,10 @@ 32 -Dsun.java2d.d3d=false -Djna.nosys=true + -Djna.nounpack=true + -Djna.boot.library.name=jnidispatch-4.2.2-win32-x86 + -Djna.boot.library.path="%EXEDIR%"/lib + -Djna.debug_load=true -DAPP_DIR="%EXEDIR%" -DDEBUG=true