Add support for WPF controls in plugins and method parameters in plugin commands

This commit is contained in:
John Gross
2017-04-04 16:22:13 -07:00
parent 8bf7cd2c1a
commit 2858c35c38
32 changed files with 472 additions and 19 deletions

View File

@@ -25,7 +25,7 @@ namespace Torch.Server
public TorchConfig(string instanceName = "Torch", string instancePath = null, int autosaveInterval = 5, bool autoRestart = false)
{
InstanceName = instanceName;
InstancePath = instancePath ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Torch", InstanceName);
InstancePath = instancePath ?? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SpaceEngineersDedicated", InstanceName);
Autosave = autosaveInterval;
AutoRestart = autoRestart;
}