Add configuration option to disable asset conversion on startup

This commit is contained in:
jvyden 2022-03-18 16:26:47 -04:00
commit daf1cf8a11
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 4 additions and 3 deletions

View file

@ -78,7 +78,7 @@ public static class Program
return;
}
FileHelper.ConvertAllTexturesToPng();
if (ServerSettings.Instance.ConvertAssetsOnStartup) FileHelper.ConvertAllTexturesToPng();
Logger.Log("Starting room cleanup thread...", LoggerLevelStartup.Instance);
RoomHelper.StartCleanupThread();

View file

@ -5,7 +5,6 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using JetBrains.Annotations;
using Kettu;
using LBPUnion.ProjectLighthouse.Helpers;
using LBPUnion.ProjectLighthouse.Logging;
namespace LBPUnion.ProjectLighthouse.Types.Settings;
@ -13,7 +12,7 @@ namespace LBPUnion.ProjectLighthouse.Types.Settings;
[Serializable]
public class ServerSettings
{
public const int CurrentConfigVersion = 25; // MUST BE INCREMENTED FOR EVERY CONFIG CHANGE!
public const int CurrentConfigVersion = 26; // MUST BE INCREMENTED FOR EVERY CONFIG CHANGE!
private static FileSystemWatcher fileWatcher;
static ServerSettings()
{
@ -163,6 +162,8 @@ public class ServerSettings
public string ServerListenUrl { get; set; } = "http://localhost:10060";
public bool ConvertAssetsOnStartup { get; set; } = true;
#region SMTP
public bool SMTPEnabled { get; set; }