private void copyOriginalResources(File dir) {
		new GuiMessage("Copying from "+dir.getAbsolutePath()).create();
		
		List<File> dirs = new LinkedList<File>();
		dirs.add(dir);
		
		while (!dirs.isEmpty()) {
			File f = dirs.remove(0);
			if (f.isDirectory()) {
				if (f.getName().matches("\\.{1,2}")) continue;
				for (File f2 : f.listFiles()) dirs.add(f2);
			} else if (f.getName().endsWith(".xnb")) {
				String mapping = getMapping(dir,f);
				if (mapping != null) {
					try {
						XNBReader xnbr = new XNBReader(f);
						XNBData xnbd = xnbr.read(false);
						
						Object o = xnbd.getAssetData();
						if (o == null) continue;
						if (o instanceof Image) {
							FileOutputStream fos = new FileOutputStream(new File(ModManager.getPath("modd://__vanilla/"+mapping)));
							ImageOut.write((Image)o,ImageOut.PNG,fos);
							fos.close();
						}
					} catch (Exception e) {App.getApp().handle(e);}
				}
			}
		}
		
		copied = true;
	}