Create SupportDirPrefix and IsPathRelativeToSupportDirectory() as members on Platform class.
This commit is contained in:
@@ -289,7 +289,7 @@ namespace OpenRA.Mods.Common.Widgets.Logic
|
||||
{
|
||||
if (newsBG != null)
|
||||
{
|
||||
var cacheFile = Platform.ResolvePath("^", "news.yaml");
|
||||
var cacheFile = Platform.ResolvePath(Platform.SupportDirPrefix, "news.yaml");
|
||||
var currentNews = ParseNews(cacheFile);
|
||||
if (currentNews != null)
|
||||
DisplayNews(currentNews);
|
||||
|
||||
Reference in New Issue
Block a user