- Enabled the display and installation of unnamed DLCs, as I've just discovered a case of DLC name updating without the buildid changing (Dying Light 2 - Peacekeeper 01)
This commit is contained in:
pointfeev 2022-02-14 22:54:42 -05:00
parent 93175e7089
commit 2fc99edf19
2 changed files with 3 additions and 7 deletions

View file

@ -5,7 +5,7 @@
<UseWindowsForms>True</UseWindowsForms>
<ApplicationIcon>Resources\ini.ico</ApplicationIcon>
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
<Version>2.4.1.0</Version>
<Version>2.4.1.1</Version>
<PackageIcon>Resources\ini.ico</PackageIcon>
<PackageIconUrl />
<Description>Automatically generates and installs CreamAPI files for Steam games on the user's computer. It can also generate and install CreamAPI for the Paradox Launcher should the user select a Paradox Interactive game.</Description>

View file

@ -246,12 +246,8 @@ internal partial class SelectForm : CustomForm
dlcIconStaticId ??= dlcAppInfo.Value?.GetChild("common")?.GetChild("logo")?.ToString();
}
if (Program.Canceled) return;
if (string.IsNullOrWhiteSpace(dlcName))
{
RemoveFromRemainingDLCs(id.ToString());
return;
}
dlc[id] = /*$"[{id}] " +*/ (dlcName, dlcIconStaticId);
if (string.IsNullOrWhiteSpace(dlcName)) dlcName = "Unnamed DLC";
dlc[id] = (dlcName, dlcIconStaticId);
RemoveFromRemainingDLCs(id.ToString());
progress.Report(++CompleteTasks);
});