Render themes: allow symbols without texture atlas, closes #64

This commit is contained in:
Emux
2016-07-12 18:45:44 +03:00
parent 081e6b8f2b
commit 57a152d0aa
6 changed files with 74 additions and 8 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright 2013 Hannes Janetzek
* Copyright 2016 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -21,10 +22,14 @@ import com.badlogic.gdx.files.FileHandle;
import com.badlogic.gdx.utils.GdxRuntimeException;
import org.oscim.backend.AssetAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.InputStream;
public class GdxAssets extends AssetAdapter {
private static final Logger log = LoggerFactory.getLogger(GdxAssets.class);
static String pathPrefix = "";
private GdxAssets(String path) {
@@ -40,7 +45,7 @@ public class GdxAssets extends AssetAdapter {
try {
return file.read();
} catch (GdxRuntimeException e) {
e.printStackTrace();
log.debug(e.getMessage());
return null;
}
}