- public static Res stringToRes(String url) { return stringToRes(url, false); }
- public static Res stringToRes(String url, boolean permitLocalFilesystem) {
- if (url.indexOf('!') != -1)
- return (Res)(new Zip(stringToRes(url.substring(0, url.lastIndexOf('!')))).
- get(url.substring(url.lastIndexOf('!') + 1)));
+ public static Res stringToRes(String url) {
+ if (url.indexOf('!') != -1) {
+ Res ret = new Zip(stringToRes(url.substring(0, url.lastIndexOf('!'))));
+ String subpath = url.substring(url.lastIndexOf('!') + 1);
+ if (subpath.length() > 0) ret = (Res)ret.get(subpath);
+ return ret;
+ }