Merge pull request #169 from 13xforever/vnext

Hotfix for the new corrupted dumps
This commit is contained in:
Ilya 2019-01-14 01:41:30 +05:00 committed by GitHub
commit 3205a499be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -371,7 +371,7 @@ namespace CompatBot.Utils.ResultFormatters
{
BuildWeirdSettingsSection(builder, items);
BuildMissingLicensesSection(builder, items);
var brokenDump = !string.IsNullOrEmpty("edat_block_offset") || await HasBrokenFilesAsync(items).ConfigureAwait(false);
var brokenDump = !string.IsNullOrEmpty(items["edat_block_offset"]) || await HasBrokenFilesAsync(items).ConfigureAwait(false);
var elfBootPath = items["elf_boot_path"] ?? "";
var isEboot = !string.IsNullOrEmpty(elfBootPath) && elfBootPath.EndsWith("EBOOT.BIN", StringComparison.InvariantCultureIgnoreCase);
var isElf = !string.IsNullOrEmpty(elfBootPath) && !elfBootPath.EndsWith("EBOOT.BIN", StringComparison.InvariantCultureIgnoreCase);