Skip to content

Commit

Permalink
Nand: Fix spamming of bad block in XeLL area message
Browse files Browse the repository at this point in the history
  • Loading branch information
Octal450 committed May 17, 2022
1 parent 5358fe3 commit 1eb1ee4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions J-Runner/Nand/Nand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,7 @@ public void getbadblocks()
long imgsize = 0;
byte[] image;
int blocksize, reservedoffset;
bool bad_block_in_xell = false;

if (bigblock)
{
Expand All @@ -664,10 +665,7 @@ public void getbadblocks()
if (JRunner.Nand.BadBlock.checkifbadblock(block, counter, bigblock, true))
{
bad_blocks.Add(counter);
if (counter < 0x50)
{
MessageBox.Show("Bad block detected in XeLL image area (0x00-0x50)\n\nThis may cause the console to not boot properly\n\nIf this occurs, replace the NAND TSOP chip and re-write the image", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
if (counter < 0x50) bad_block_in_xell = true;
}
if (bad_blocks.Count >= 0x20)
{
Expand All @@ -676,6 +674,7 @@ public void getbadblocks()
}
}

if (bad_block_in_xell) MessageBox.Show("Bad block detected in XeLL image area (0x00-0x50)\n\nThis may cause the console to not boot properly\n\nIf this occurs, replace the NAND TSOP chip and re-write the image", "Notice", MessageBoxButtons.OK, MessageBoxIcon.Information);

if (bad_blocks.Count == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion J-Runner/Resources/Build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
05-15-2022 20:26:51
05-17-2022 19:43:39

0 comments on commit 1eb1ee4

Please sign in to comment.