Xorg: Change library path

This commit is contained in:
zt515
2017-12-01 18:56:41 +08:00
parent 7737a9e8a3
commit 4516d9ee2a
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ package io.neoterm;
import android.view.KeyEvent; import android.view.KeyEvent;
public class Globals { public class Globals {
public static String XLIB_DIR = "/data/data/io.neoterm/files/usr/lib/"; public static String XLIB_DIR = "/data/data/io.neoterm/files/usr/lib/xorg-neoterm";
public static String XLIBS[] = { public static String XLIBS[] = {
"x11_sdl_native_helpers", "x11_sdl_native_helpers",
"x11_sdl-1.2", "x11_sdl-1.2",

View File

@ -46,7 +46,7 @@ class SessionComponent : NeoComponent {
Globals.XLIBS Globals.XLIBS
.plus(Globals.XAPP_LIBS) .plus(Globals.XAPP_LIBS)
.forEach { .forEach {
val soPath = "${NeoTermPath.LIB_PATH}/${wrapLibraryName(it)}" val soPath = "${NeoTermPath.LIB_PATH}/xorg-neoterm/${wrapLibraryName(it)}"
NLog.e("SessionComponent", "Loading lib " + soPath) NLog.e("SessionComponent", "Loading lib " + soPath)
try { try {
System.load(soPath) System.load(soPath)