mirror of
https://github.com/FroggMaster/CreamInstaller.git
synced 2026-07-28 14:47:04 -07:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user