From c5c90ff2be904748a20c807eba4722e2d0be3596 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Tue, 4 Apr 2006 22:22:05 +0000 Subject: [PATCH] We need to do this in a way that is backwards compatible. --- .../threerings/getdown/data/Application.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/java/com/threerings/getdown/data/Application.java b/src/java/com/threerings/getdown/data/Application.java index f56c3e0..bfdd6f1 100644 --- a/src/java/com/threerings/getdown/data/Application.java +++ b/src/java/com/threerings/getdown/data/Application.java @@ -271,14 +271,18 @@ public class Application for (int ii = 0; ii < rsrcs.length; ii++) { String rsrc = rsrcs[ii]; try { - boolean unpack = false; - int uidx; - if ((uidx = rsrc.indexOf("[u]")) != -1) { - unpack = true; - rsrc = rsrc.substring(0, uidx).trim() + - rsrc.substring(uidx+3).trim(); - } - _resources.add(createResource(rsrc, unpack)); + _resources.add(createResource(rsrc, false)); + } catch (Exception e) { + Log.warning("Invalid resource '" + rsrcs[ii] + "'. " + e); + } + } + } + rsrcs = ConfigUtil.getMultiValue(cdata, "uresource"); + if (rsrcs != null) { + for (int ii = 0; ii < rsrcs.length; ii++) { + String rsrc = rsrcs[ii]; + try { + _resources.add(createResource(rsrc, true)); } catch (Exception e) { Log.warning("Invalid resource '" + rsrcs[ii] + "'. " + e); }