From 513dcbb599c34d6b7eee8e01f06735f97bd90c75 Mon Sep 17 00:00:00 2001 From: Frog Date: Sat, 18 Jul 2026 04:46:10 -0700 Subject: [PATCH] Better Handling of Enabled/Disabled DLC for PreExisting CreamAPI/SmokeAPI configs - Better handling for the enabled/disabled state of a games DLC if an existing SmokeAPI/CreamAPI configuration is detected. - Some additional checks to avoid duplicate DLC entries in the visual tree --- CreamInstaller/Forms/SelectForm.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CreamInstaller/Forms/SelectForm.cs b/CreamInstaller/Forms/SelectForm.cs index 6bec632..cf24623 100644 --- a/CreamInstaller/Forms/SelectForm.cs +++ b/CreamInstaller/Forms/SelectForm.cs @@ -346,7 +346,7 @@ internal sealed partial class SelectForm : CustomForm if (Program.Canceled) return; - if (!string.IsNullOrWhiteSpace(fullGameName)) + if (!string.IsNullOrWhiteSpace(fullGameName) && fullGameAppId != dlcAppId && !SelectionDLC.All.Keys.Any(d => d.GameId == appId && d.Id == fullGameAppId)) { SelectionDLC fullGameDlc = SelectionDLC.GetOrCreate( fullGameOnSteamStore ? DLCType.Steam : DLCType.SteamHidden, appId, @@ -1487,7 +1487,7 @@ internal sealed partial class SelectForm : CustomForm else if (disabledIds.Contains(dlc.Id)) dlc.Enabled = false; else - dlc.Enabled = false; // not in config at all + dlc.Enabled = true; // not in config — SmokeAPI auto-unlocks by default } break; }