mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Add configuration option to disable asset conversion on startup
This commit is contained in:
parent
7a4c16f322
commit
daf1cf8a11
2 changed files with 4 additions and 3 deletions
|
@ -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();
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue