/**
*
* Gets internal file handles for different platforms
*
* @param rootDirectory The root directory for files
* @return The file handle
*/
public static FileHandle getFileHandle(String rootDirectory, FileType type) {
FileHandle result;
if (Gdx.app.getType() == ApplicationType.Android) {
result = Gdx.files.getFileHandle(rootDirectory, type);
}
else if (Gdx.app.getType() == ApplicationType.iOS) {
result = Gdx.files.getFileHandle(rootDirectory, type);
}
else if (Gdx.app.getType() == ApplicationType.Desktop) {
result = Gdx.files.getFileHandle("./bin/" + rootDirectory, type);
}
else {
result = Gdx.files.getFileHandle(rootDirectory, type);
}
return result;
}