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:
kappa1 2011-05-13 16:24:10 +00:00
parent d53afc0b4d
commit 4e872f8c2c
1 changed files with 14 additions and 1 deletions

View File

@ -713,7 +713,20 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
}
} else if (osName.startsWith("Mac") || osName.startsWith("Darwin")) {
nativeJarList = getParameter("al_mac");
// 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");
}
} else if (osName.startsWith("Solaris") || osName.startsWith("SunOS")) {
nativeJarList = getParameter("al_solaris");
} else if (osName.startsWith("FreeBSD")) {