updated NLog to v5
fixed most of issues with world creating/loading fixed log window lags fixed some compiler warnings fixed empty log files creating fixed logging performance added better logging of load process commands autocomplete in torch GUI chat in torch GUI now has entered history (like console, use up/down arrows) abstraction of instance manager session name now correctly displaying in torchSessionManager messages TorchSession now has loaded world property (as torch now has more control about world load process) now only dedicated config locks after session start
This commit is contained in:
@@ -18,11 +18,6 @@ namespace Torch.Server.ViewModels
|
||||
private MyConfigDedicated<MyObjectBuilder_SessionSettings> _config;
|
||||
public MyConfigDedicated<MyObjectBuilder_SessionSettings> Model => _config;
|
||||
|
||||
public ConfigDedicatedViewModel() : this(new MyConfigDedicated<MyObjectBuilder_SessionSettings>(""))
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ConfigDedicatedViewModel(MyConfigDedicated<MyObjectBuilder_SessionSettings> configDedicated)
|
||||
{
|
||||
_config = configDedicated;
|
||||
@@ -36,8 +31,7 @@ namespace Torch.Server.ViewModels
|
||||
Validate();
|
||||
|
||||
_config.SessionSettings = SessionSettings;
|
||||
// Never ever
|
||||
//_config.IgnoreLastSession = true;
|
||||
_config.IgnoreLastSession = true;
|
||||
_config.Save(path);
|
||||
}
|
||||
|
||||
@@ -73,8 +67,9 @@ namespace Torch.Server.ViewModels
|
||||
}
|
||||
}
|
||||
|
||||
public async Task UpdateAllModInfosAsync()
|
||||
public Task UpdateAllModInfosAsync()
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
/*if (!Mods.Any())
|
||||
return;
|
||||
List<MyWorkshopItem> modInfos;
|
||||
|
13
Torch.Server/ViewModels/LogViewerViewModel.cs
Normal file
13
Torch.Server/ViewModels/LogViewerViewModel.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace Torch.Server.ViewModels;
|
||||
|
||||
public class LogViewerViewModel : ViewModel
|
||||
{
|
||||
public ObservableCollection<LogEntry> LogEntries { get; set; } = new();
|
||||
}
|
||||
|
||||
|
||||
public record LogEntry(DateTime Timestamp, string Message, SolidColorBrush Color);
|
@@ -85,8 +85,9 @@ namespace Torch.Server.ViewModels
|
||||
/// via the Steam web API.
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public async Task<bool> UpdateModInfoAsync()
|
||||
public Task<bool> UpdateModInfoAsync()
|
||||
{
|
||||
return Task.FromResult(true);
|
||||
/*if (UgcService.ToLower() == "mod.io")
|
||||
return true;
|
||||
|
||||
@@ -104,7 +105,6 @@ namespace Torch.Server.ViewModels
|
||||
Log.Info("Mod Info successfully retrieved!");
|
||||
FriendlyName = modInfo.Title;
|
||||
Description = modInfo.Description;*/
|
||||
return true;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
Reference in New Issue
Block a user