mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-30 18:14:55 +02:00
AppletLoader: fix problem with file extension trimming code, added warning when lzma support is missing 'lzma.jar' and lzma files are being loaded.
This commit is contained in:
parent
5e318ef834
commit
1929c3be5d
|
|
@ -664,11 +664,13 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
*/
|
||||
protected String trimExtensionByCapabilities(String file) {
|
||||
if (!pack200Supported) {
|
||||
file = replaceLast(file, ".pack", "");
|
||||
file = file.replace(".pack", "");
|
||||
}
|
||||
|
||||
if (!lzmaSupported) {
|
||||
file = replaceLast(file, ".lzma", "");
|
||||
System.out.println("'lzma.jar' required for LZMA support!");
|
||||
System.out.println("trying files without the lzma extension...");
|
||||
file = file.replace(".lzma", "");
|
||||
}
|
||||
return file;
|
||||
}
|
||||
|
|
@ -766,7 +768,7 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
}
|
||||
|
||||
/**
|
||||
* 7 steps
|
||||
* 8 steps
|
||||
*
|
||||
* 1) check applet cache and decide whether to download jars
|
||||
* 2) download the jars
|
||||
|
|
@ -774,7 +776,8 @@ public class AppletLoader extends Applet implements Runnable, AppletStub {
|
|||
* 4) validate jars for any corruption
|
||||
* 5) save applet cache information
|
||||
* 6) add jars to class path
|
||||
* 7) switch to loaded applet
|
||||
* 7) set any lwjgl properties
|
||||
* 8) switch to loaded applet
|
||||
*/
|
||||
public void run() {
|
||||
setState(STATE_CHECKING_CACHE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue