import java.net.MalformedURLException;
import java.net.URL;
-import tim.prune.Config;
+import tim.prune.config.Config;
/**
* Class to hold the config for the map tiles
*/
public MapTileConfig()
{
- _index = Config.getMapServerIndex();
- _url = fixUrl(Config.getMapServerUrl());
+ _index = Config.getConfigInt(Config.KEY_MAPSERVERINDEX);
+ _url = fixUrl(Config.getConfigString(Config.KEY_MAPSERVERURL));
// reset index wrong or if other url too short
if (_index < 0 || _index > OTHER_SERVER_NUM ||
(_index == OTHER_SERVER_NUM && (_url == null || _url.length() < 5)))