document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.     /**
  2.      *
  3.      * Gets internal file handles for different platforms
  4.      *
  5.      * @param rootDirectory The root directory for files
  6.      * @return The file handle
  7.      */
  8.     public static FileHandle getFileHandle(String rootDirectory, FileType type) {
  9.         FileHandle result;
  10.         if (Gdx.app.getType() == ApplicationType.Android) {
  11.             result = Gdx.files.getFileHandle(rootDirectory, type);
  12.         }
  13.         else if (Gdx.app.getType() == ApplicationType.iOS) {
  14.             result = Gdx.files.getFileHandle(rootDirectory, type);
  15.         }
  16.         else if (Gdx.app.getType() == ApplicationType.Desktop) {
  17.             result = Gdx.files.getFileHandle("./bin/" + rootDirectory, type);
  18.         }
  19.         else {
  20.             result = Gdx.files.getFileHandle(rootDirectory, type);
  21.         }
  22.         return result;
  23.     }
');