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
This commit is contained in:
Frog
2026-07-18 04:46:10 -07:00
parent 39fa07f471
commit 513dcbb599
+2 -2
View File
@@ -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;
}