wineandroid: Also set WINEDLLPATH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
56fbca4f44
commit
d1abe86771
|
@ -78,6 +78,7 @@ private void loadWine( String cmdline )
|
||||||
{
|
{
|
||||||
File bindir = new File( getFilesDir(), Build.CPU_ABI + "/bin" );
|
File bindir = new File( getFilesDir(), Build.CPU_ABI + "/bin" );
|
||||||
File libdir = new File( getFilesDir(), Build.CPU_ABI + "/lib" );
|
File libdir = new File( getFilesDir(), Build.CPU_ABI + "/lib" );
|
||||||
|
File dlldir = new File( libdir, "wine" );
|
||||||
File prefix = new File( getFilesDir(), "prefix" );
|
File prefix = new File( getFilesDir(), "prefix" );
|
||||||
File loader = new File( bindir, "wine" );
|
File loader = new File( bindir, "wine" );
|
||||||
String locale = Locale.getDefault().getLanguage() + "_" +
|
String locale = Locale.getDefault().getLanguage() + "_" +
|
||||||
|
@ -88,6 +89,7 @@ private void loadWine( String cmdline )
|
||||||
HashMap<String,String> env = new HashMap<String,String>();
|
HashMap<String,String> env = new HashMap<String,String>();
|
||||||
env.put( "WINELOADER", loader.toString() );
|
env.put( "WINELOADER", loader.toString() );
|
||||||
env.put( "WINEPREFIX", prefix.toString() );
|
env.put( "WINEPREFIX", prefix.toString() );
|
||||||
|
env.put( "WINEDLLPATH", dlldir.toString() );
|
||||||
env.put( "LD_LIBRARY_PATH", libdir.toString() + ":" + getApplicationInfo().nativeLibraryDir );
|
env.put( "LD_LIBRARY_PATH", libdir.toString() + ":" + getApplicationInfo().nativeLibraryDir );
|
||||||
env.put( "LC_ALL", locale );
|
env.put( "LC_ALL", locale );
|
||||||
env.put( "LANG", locale );
|
env.put( "LANG", locale );
|
||||||
|
|
Loading…
Reference in New Issue