Load assets using absolute paths. Fixes #6717.
This commit is contained in:
@@ -360,7 +360,7 @@ namespace OpenRA.Server
|
||||
|
||||
if (Settings.Dedicated)
|
||||
{
|
||||
var motdFile = Path.Combine(Platform.SupportDir, "motd.txt");
|
||||
var motdFile = Platform.ResolvePath("^", "motd.txt");
|
||||
if (!File.Exists(motdFile))
|
||||
System.IO.File.WriteAllText(motdFile, "Welcome, have fun and good luck!");
|
||||
var motd = System.IO.File.ReadAllText(motdFile);
|
||||
|
||||
Reference in New Issue
Block a user