From 5fc7761b4ce54dcf6b8e0d3a0d667d387d0f0324 Mon Sep 17 00:00:00 2001 From: Archangel Date: Thu, 18 Sep 2025 19:56:26 +0200 Subject: [PATCH] Send InvalidOrUnloadableProfile to launcher --- .../SPTarkov.Server.Core/Controllers/ProfileController.cs | 2 ++ .../SPTarkov.Server.Core/Models/Eft/Launcher/MiniProfile.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs b/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs index e055a193..c6b16e0a 100644 --- a/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs +++ b/Libraries/SPTarkov.Server.Core/Controllers/ProfileController.cs @@ -68,6 +68,7 @@ public class ProfileController( MaxLevel = maxLvl, Edition = profile.ProfileInfo?.Edition ?? string.Empty, ProfileId = profile.ProfileInfo?.ProfileId ?? string.Empty, + InvalidOrUnloadableProfile = profile.ProfileInfo?.InvalidOrUnloadableProfile, SptData = profileHelper.GetDefaultSptDataObject(), }; } @@ -85,6 +86,7 @@ public class ProfileController( MaxLevel = maxLvl, Edition = profile.ProfileInfo?.Edition ?? string.Empty, ProfileId = profile.ProfileInfo?.ProfileId ?? string.Empty, + InvalidOrUnloadableProfile = profile.ProfileInfo?.InvalidOrUnloadableProfile, SptData = profile.SptData, }; } diff --git a/Libraries/SPTarkov.Server.Core/Models/Eft/Launcher/MiniProfile.cs b/Libraries/SPTarkov.Server.Core/Models/Eft/Launcher/MiniProfile.cs index bf4eb150..ca8ed25c 100644 --- a/Libraries/SPTarkov.Server.Core/Models/Eft/Launcher/MiniProfile.cs +++ b/Libraries/SPTarkov.Server.Core/Models/Eft/Launcher/MiniProfile.cs @@ -34,6 +34,9 @@ public record MiniProfile [JsonPropertyName("profileId")] public string? ProfileId { get; set; } + [JsonPropertyName("invalidOrUnloadableProfile")] + public bool? InvalidOrUnloadableProfile { get; set; } + [JsonPropertyName("sptData")] public Profile.Spt? SptData { get; set; }