Formatting and naming consistency changes

This commit is contained in:
Chomp
2025-09-02 14:27:10 +01:00
parent b563bf1feb
commit e5d0af3890
78 changed files with 696 additions and 724 deletions
@@ -6,7 +6,6 @@ using SPTarkov.Server.Core.Models.Eft.Launcher;
using SPTarkov.Server.Core.Models.Eft.Profile;
using SPTarkov.Server.Core.Models.Spt.Config;
using SPTarkov.Server.Core.Models.Spt.Mod;
using SPTarkov.Server.Core.Models.Utils;
using SPTarkov.Server.Core.Servers;
using SPTarkov.Server.Core.Services;
using SPTarkov.Server.Core.Utils;
@@ -26,7 +25,7 @@ public class LauncherController(
ConfigServer configServer
)
{
protected readonly CoreConfig _coreConfig = configServer.GetConfig<CoreConfig>();
protected readonly CoreConfig CoreConfig = configServer.GetConfig<CoreConfig>();
/// <summary>
/// Handle launcher connecting to server
@@ -37,13 +36,13 @@ public class LauncherController(
// Get all possible profile types + filter out any that are blacklisted
var profileTemplates = databaseService
.GetProfileTemplates()
.Where(profile => !_coreConfig.Features.CreateNewProfileTypesBlacklist.Contains(profile.Key))
.Where(profile => !CoreConfig.Features.CreateNewProfileTypesBlacklist.Contains(profile.Key))
.ToDictionary();
return new ConnectResponse
{
BackendUrl = httpServerHelper.GetBackendUrl(),
Name = _coreConfig.ServerName,
Name = CoreConfig.ServerName,
Editions = profileTemplates.Select(x => x.Key).ToList(),
ProfileDescriptions = GetProfileDescriptions(profileTemplates),
};
@@ -174,7 +173,7 @@ public class LauncherController(
/// <returns>Session id</returns>
public MongoId Wipe(RegisterData info)
{
if (!_coreConfig.AllowProfileWipe)
if (!CoreConfig.AllowProfileWipe)
{
return MongoId.Empty();
}
@@ -196,7 +195,7 @@ public class LauncherController(
/// <returns></returns>
public string GetCompatibleTarkovVersion()
{
return _coreConfig.CompatibleTarkovVersion;
return CoreConfig.CompatibleTarkovVersion;
}
/// <summary>