mirror of
https://github.com/StudentBlake/XCI-Explorer
synced 2024-11-22 04:03:04 +00:00
Disable trim ASAP if XCI can't be trimmed
This commit is contained in:
parent
18fb5eb3b7
commit
72fc846986
1 changed files with 2 additions and 3 deletions
|
@ -227,6 +227,8 @@ namespace XCI_Explorer
|
||||||
TB_ROMSize.Text = $"{num:0.##} {array[num2]}";
|
TB_ROMSize.Text = $"{num:0.##} {array[num2]}";
|
||||||
double num3 = UsedSize = (double)(XCI.XCI_Headers[0].CardSize2 * 512 + 512);
|
double num3 = UsedSize = (double)(XCI.XCI_Headers[0].CardSize2 * 512 + 512);
|
||||||
TB_ExactUsedSpace.Text = "(" + num3.ToString() + " bytes)";
|
TB_ExactUsedSpace.Text = "(" + num3.ToString() + " bytes)";
|
||||||
|
if (isTrimmed())
|
||||||
|
B_TrimXCI.Enabled = false;
|
||||||
num2 = 0;
|
num2 = 0;
|
||||||
while (num3 >= 1024.0 && num2 < array.Length - 1)
|
while (num3 >= 1024.0 && num2 < array.Length - 1)
|
||||||
{
|
{
|
||||||
|
@ -238,9 +240,6 @@ namespace XCI_Explorer
|
||||||
LoadPartitions();
|
LoadPartitions();
|
||||||
LoadNCAData();
|
LoadNCAData();
|
||||||
LoadGameInfos();
|
LoadGameInfos();
|
||||||
|
|
||||||
if (isTrimmed())
|
|
||||||
B_TrimXCI.Enabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Giba's better implementation (more native)
|
// Giba's better implementation (more native)
|
||||||
|
|
Loading…
Reference in a new issue