From 72fc8469865629fcaaf900627e61cec1f968999a Mon Sep 17 00:00:00 2001 From: Blake <6874208+StudentBlake@users.noreply.github.com> Date: Wed, 13 Nov 2019 13:29:41 -0500 Subject: [PATCH] Disable trim ASAP if XCI can't be trimmed --- XCI_Explorer/MainForm.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/XCI_Explorer/MainForm.cs b/XCI_Explorer/MainForm.cs index 62eec3a..b686abb 100644 --- a/XCI_Explorer/MainForm.cs +++ b/XCI_Explorer/MainForm.cs @@ -227,6 +227,8 @@ namespace XCI_Explorer TB_ROMSize.Text = $"{num:0.##} {array[num2]}"; double num3 = UsedSize = (double)(XCI.XCI_Headers[0].CardSize2 * 512 + 512); TB_ExactUsedSpace.Text = "(" + num3.ToString() + " bytes)"; + if (isTrimmed()) + B_TrimXCI.Enabled = false; num2 = 0; while (num3 >= 1024.0 && num2 < array.Length - 1) { @@ -238,9 +240,6 @@ namespace XCI_Explorer LoadPartitions(); LoadNCAData(); LoadGameInfos(); - - if (isTrimmed()) - B_TrimXCI.Enabled = false; } // Giba's better implementation (more native)