mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2024-11-30 10:57:49 -05:00
show incompatibilities list correctly
This commit is contained in:
parent
36082120af
commit
799ac4fd4f
1 changed files with 6 additions and 1 deletions
|
@ -327,6 +327,11 @@ namespace Rebuilder
|
|||
return (MessageBox.Show("The following patches you've chosen are not compatible with this version of LEGO Island:\n\n" + incompatibilities + "\nContinue without them?", "Compatibility", MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes);
|
||||
}
|
||||
|
||||
private static string GetDisplayNameOfProperty(string property)
|
||||
{
|
||||
return ((DisplayNameAttribute)typeof(PatchList).GetProperty("RedirectSaveData").GetCustomAttributes(typeof(DisplayNameAttribute), true)[0]).DisplayName;
|
||||
}
|
||||
|
||||
private bool Patch(string source_dir, string dir)
|
||||
{
|
||||
string incompatibilities = "";
|
||||
|
@ -458,7 +463,7 @@ namespace Rebuilder
|
|||
|
||||
if (aug_build && patch_config.RedirectSaveData)
|
||||
{
|
||||
incompatibilities += patch_config.RedirectSaveData.ToString() + "\n";
|
||||
incompatibilities += "- " + GetDisplayNameOfProperty("RedirectSaveData") + "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue