diff --git a/Torch.Server/Managers/InstanceManager.cs b/Torch.Server/Managers/InstanceManager.cs index 5e63b77..a3c06b1 100644 --- a/Torch.Server/Managers/InstanceManager.cs +++ b/Torch.Server/Managers/InstanceManager.cs @@ -234,9 +234,11 @@ namespace Torch.Server.Managers try { - var world = DedicatedConfig.Worlds.FirstOrDefault(x => x.WorldPath == DedicatedConfig.LoadWorld) ?? new WorldViewModel(DedicatedConfig.LoadWorld); + var world = DedicatedConfig.SelectedWorld; - world.Checkpoint.SessionName = DedicatedConfig.WorldName; + world.Checkpoint.SessionName = string.IsNullOrEmpty(DedicatedConfig.WorldName) + ? Path.GetDirectoryName(DedicatedConfig.LoadWorld) + : DedicatedConfig.WorldName; world.WorldConfiguration.Settings = DedicatedConfig.SessionSettings; world.WorldConfiguration.Mods.Clear(); @@ -268,7 +270,7 @@ namespace Torch.Server.Managers private void ValidateInstance(string path) { Directory.CreateDirectory(Path.Combine(path, "Saves")); - Directory.CreateDirectory(Path.Combine(path, "Mods")); + // Directory.CreateDirectory(Path.Combine(path, "Mods")); var configPath = Path.Combine(path, CONFIG_NAME); if (File.Exists(configPath)) return; diff --git a/Torch.Server/Patches/CheckpointLoadPatch.cs b/Torch.Server/Patches/CheckpointLoadPatch.cs index e4f0ef5..d9d4fe1 100644 --- a/Torch.Server/Patches/CheckpointLoadPatch.cs +++ b/Torch.Server/Patches/CheckpointLoadPatch.cs @@ -33,6 +33,9 @@ public static class CheckpointLoadPatch return false; } + world.KeenCheckpoint.Settings = world.WorldConfiguration.Settings; + world.KeenCheckpoint.Mods = world.WorldConfiguration.Mods; + __result = world.Checkpoint; return false; } diff --git a/Torch.Server/Views/ModListControl.xaml b/Torch.Server/Views/ModListControl.xaml index 723d2da..c87c8c3 100644 --- a/Torch.Server/Views/ModListControl.xaml +++ b/Torch.Server/Views/ModListControl.xaml @@ -5,8 +5,7 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:viewModels="clr-namespace:Torch.Server.ViewModels" mc:Ignorable="d" - d:DesignHeight="450" d:DesignWidth="800" - MouseMove="UserControl_MouseMove"> + d:DesignHeight="450" d:DesignWidth="800"> @@ -18,7 +17,7 @@ - + - + @@ -98,10 +94,10 @@ -