check for Auto & strict selection lib loader when no libraries is selected

This commit is contained in:
13xforever 2019-11-07 20:14:45 +05:00
parent 646443bde0
commit d72e6946ba
2 changed files with 6 additions and 3 deletions

View File

@ -194,7 +194,9 @@ namespace CompatBot.Utils.ResultFormatters
private static void BuildLibsSection(DiscordEmbedBuilder builder, NameValueCollection items)
{
if (items["lib_loader"] is string libs && libs.Contains("manual", StringComparison.InvariantCultureIgnoreCase))
if (items["lib_loader"] is string libs
&& (libs.Contains("manual", StringComparison.InvariantCultureIgnoreCase)
|| libs.Contains("strict", StringComparison.InvariantCultureIgnoreCase)))
builder.AddField("Selected Libraries", items["library_list"]?.Trim(1024));
}
}

View File

@ -215,8 +215,9 @@ namespace CompatBot.Utils.ResultFormatters
if (items["lib_loader"] is string libLoader
&& (libLoader == "Auto"
|| (libLoader.Contains("manual", StringComparison.InvariantCultureIgnoreCase) &&
(string.IsNullOrEmpty(items["library_list"]) || items["library_list"] == "None"))))
|| ((libLoader.Contains("manual", StringComparison.InvariantCultureIgnoreCase)
|| libLoader.Contains("strict", StringComparison.InvariantCultureIgnoreCase))
&& (string.IsNullOrEmpty(items["library_list"]) || items["library_list"] == "None"))))
{
if (items["game_title"] != "vsh.self")
notes.Add("⚠ Please use `Load liblv2.sprx only` as a `Library loader`");