From: <ka...@us...> - 2011-06-12 23:51:50
|
Revision: 3546 http://java-game-lib.svn.sourceforge.net/java-game-lib/?rev=3546&view=rev Author: kappa1 Date: 2011-06-12 23:51:44 +0000 (Sun, 12 Jun 2011) Log Message: ----------- AppletLoader: fix problem with file extension trimming code, added warning when lzma support is missing 'lzma.jar' and lzma files are being loaded. Modified Paths: -------------- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java Modified: trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java =================================================================== --- trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2011-06-12 21:22:50 UTC (rev 3545) +++ trunk/LWJGL/src/java/org/lwjgl/util/applet/AppletLoader.java 2011-06-12 23:51:44 UTC (rev 3546) @@ -664,11 +664,13 @@ */ 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 @@ } /** - * 7 steps + * 8 steps * * 1) check applet cache and decide whether to download jars * 2) download the jars @@ -774,7 +776,8 @@ * 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); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |