@@ -0,0 +1,793 @@
+package com.quexten.ravtech.files;%0A%0Aimport com.badlogic.gdx.assets.loaders.FileHandleResolver;%0Aimport com.badlogic.gdx.files.FileHandle;%0A%0A/**%0A * FallbackFileHandleResolver is a filehandle resolver%0A * that wraps a child filehandle and tries to use it.%0A * When no file is present in that filehandle%0A * the second filehandle is used as a fallback.%0A * @author Quexten%0A */%0Apublic class FallbackFileHandleResolver implements FileHandleResolver %7B%0A%0A%09private FileHandle handle;%0A%09private FileHandle fallback;%0A%0A%09public FallbackFileHandleResolver (FileHandle handle, FileHandle fallback) %7B%0A%09%09this.handle = handle;%0A%09%09this.fallback = fallback;%0A%09%7D%0A%0A%09@Override%0A%09public FileHandle resolve (String fileName) %7B%0A%09%09return handle.child(fileName).exists() ? handle.child(fileName) : fallback.child(fileName);%0A%09%7D%0A%09%0A%7D%0A

Add FallbackFileHandleResolver