AppletLoader: don't output needless lzma.jar is missing message on console unless a lzma file actually being loaded.

This commit is contained in:
kappa1 2011-10-12 22:07:36 +00:00
parent 03fa5dda72
commit f6b567c5ad

View file

@ -709,10 +709,9 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
file = file.replace(".pack", "");
}
if (!lzmaSupported) {
System.out.println("'lzma.jar' required for LZMA support!");
System.out.println("trying files without the lzma extension...");
if (!lzmaSupported && file.endsWith(".lzma")) {
file = file.replace(".lzma", "");
System.out.println("LZMA decoder (lzma.jar) not found, trying " + file + " without lzma extension.");
}
return file;
}