public static ArrayList<String> getFilesInFolder(String folder) {
		if (jarLocation != null) {
			ArrayList<String> list = new ArrayList<String>();
			for (String s : files) {
				if (s.startsWith(folder))
					list.add(s);
			}
			return list;
		} else {
			String[] list = new File(nonJarResourceFolder + folder).list();
			if (list == null)
				return null;
			for (int i = 0; i < list.length; i++)
				list[i] = folder + list[i];
			return new ArrayList<String>(Arrays.asList(list));
		}
	}