mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-12-13 22:08:37 +00:00
check for Auto & strict selection lib loader when no libraries is selected
This commit is contained in:
parent
646443bde0
commit
d72e6946ba
@ -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));
|
||||
}
|
||||
}
|
||||
|
@ -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`");
|
||||
|
Loading…
Reference in New Issue
Block a user