Hide metas with removed=false

This commit is contained in:
erri120 2022-11-10 15:23:30 +01:00
parent 39d8372a93
commit c60c05bbf7
No known key found for this signature in database

View File

@ -248,7 +248,9 @@ public class StandardInstaller : AInstaller<StandardInstaller>
try
{
var parsed = metaFile.LoadIniFile();
if (parsed["General"] is not null && (parsed["General"]["removed"] is null || parsed[General][removed=false]))
if (parsed["General"] is not null && (
parsed["General"]["removed"] is null ||
parsed["General"]["removed"].Equals(bool.FalseString, StringComparison.OrdinalIgnoreCase)))
{
// add removed=true to files not part of the Modlist so they don't show up in MO2
parsed["General"]["removed"] = "true";