Skip to content

Commit

Permalink
DS fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Rynchodon committed Jan 30, 2017
1 parent d90a0b7 commit ca74acd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Loader/LoadArms.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@
using System.Xml;
using RGiesecke.DllExport;
using Sandbox;
using Sandbox.Game.World;
using Sandbox.Engine.Platform;
using Sandbox.Graphics.GUI;
using VRage.Game.Components;
using VRage.Plugins;

namespace Rynchodon.Loader
Expand All @@ -22,7 +21,6 @@ namespace Rynchodon.Loader
/// </summary>
public class LoadArms : IPlugin
{

private const string
LauncherArgs = "-plugin LoadArms.exe",
ConfigFileName = "Config.json",
Expand Down Expand Up @@ -182,8 +180,8 @@ private LoadArms(bool start)

_directory = Path.GetDirectoryName(_directory) + "\\Load-ARMS\\";
Directory.CreateDirectory(_directory);
Logger.logFile = _directory + "Load-ARMS.log";

Logger.logFile = _directory + (Game.IsDedicated ? "Load-ARMS Dedicated.log" : "Load-ARMS.log");
Logger.WriteLine("Load-ARMS version: " + new Version(FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location), true));

if (start)
Expand Down Expand Up @@ -244,7 +242,7 @@ public void Init(object gameInstance)
return;
_initialized = true;

if (!_task.IsComplete)
if (!_task.IsComplete && !Game.IsDedicated)
MyGuiSandbox.AddScreen(new DownloadProgress(_task, _downProgress));
}

Expand Down

0 comments on commit ca74acd

Please sign in to comment.