AppletLoader: add support for optional mac arch specific natives, al_mac32, al_mac64, al_macppc, if they are not specified AppletLoader will fall back to the usual al_mac parameter.
This commit is contained in:
parent
d53afc0b4d
commit
4e872f8c2c
|
@ -713,7 +713,20 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (osName.startsWith("Mac") || osName.startsWith("Darwin")) {
|
} else if (osName.startsWith("Mac") || osName.startsWith("Darwin")) {
|
||||||
|
|
||||||
|
// check if arch specific natives have been specified
|
||||||
|
if (System.getProperty("os.arch").endsWith("64")) {
|
||||||
|
nativeJarList = getParameter("al_mac64");
|
||||||
|
} else if (System.getProperty("os.arch").endsWith("ppc")) {
|
||||||
|
nativeJarList = getParameter("al_macppc");
|
||||||
|
} else {
|
||||||
|
nativeJarList = getParameter("al_mac32");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nativeJarList == null) {
|
||||||
nativeJarList = getParameter("al_mac");
|
nativeJarList = getParameter("al_mac");
|
||||||
|
}
|
||||||
|
|
||||||
} else if (osName.startsWith("Solaris") || osName.startsWith("SunOS")) {
|
} else if (osName.startsWith("Solaris") || osName.startsWith("SunOS")) {
|
||||||
nativeJarList = getParameter("al_solaris");
|
nativeJarList = getParameter("al_solaris");
|
||||||
} else if (osName.startsWith("FreeBSD")) {
|
} else if (osName.startsWith("FreeBSD")) {
|
||||||
|
|
Loading…
Reference in New Issue