Use a shared url for news updates. Fixes #5603.

This commit is contained in:
Paul Chote
2014-07-07 21:48:07 +12:00
parent 6ad5c99815
commit c352ff644f
7 changed files with 3 additions and 14 deletions

View File

@@ -35,7 +35,6 @@ namespace OpenRA
public readonly InstallData ContentInstaller;
public readonly Dictionary<string, Pair<string, int>> Fonts;
public readonly Size TileSize = new Size(24, 24);
public readonly string NewsUrl;
public readonly TileShape TileShape = TileShape.Rectangle;
public Manifest(string mod)
@@ -97,9 +96,6 @@ namespace OpenRA
compat.Add(c.Trim());
MapCompatibility = compat.ToArray();
if (yaml.ContainsKey("NewsUrl"))
NewsUrl = yaml["NewsUrl"].Value;
}
static string[] YamlList(Dictionary<string, MiniYaml> yaml, string key)

View File

@@ -141,6 +141,7 @@ namespace OpenRA
public string MapRepository = "http://resource.openra.net/map/";
public bool FetchNews = true;
public string NewsUrl = "http://www.openra.net/gamenews";
public DateTime NewsFetchedDate;
}