Skip to content

Commit

Permalink
Nand: Fix broken 4GB patch detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Octal450 committed Apr 24, 2022
1 parent c26e709 commit 94f4bd8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion J-Runner/Classes/variables.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public enum Windows
public static string version = "3.1.4";
public static string build = "3140." + DateTime.ParseExact(Properties.Resources.Build.Trim(), "MM-dd-yyyy HH:mm:ss", null).ToString("yyMMdd.HHmm");
public const string staticversion = "3.1.4.0";
public static int revision = 20;
public static int revision = 21;
public static Windows currentOS = Windows.Unknown;
public static bool iswriting;
public static bool isscanningip = false;
Expand Down
16 changes: 12 additions & 4 deletions J-Runner/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2118,10 +2118,18 @@ void nandinit()
try
{
byte[] check_XL_USB = new byte[0x5B230];
fs.Position = 0x8FFD0;
fs.Read(check_XL_USB, 0, 0x5B230); // 0x8FFD0 - 0xEB200
check_XL_USB = Nand.Nand.unecc(check_XL_USB);

if (nand.noecc)
{
fs.Position = 0x8BA00;
fs.Read(check_XL_USB, 0, 0x58600); // 0x8BA00 - 0xE4000
}
else
{
fs.Position = 0x8FFD0;
fs.Read(check_XL_USB, 0, 0x5B230); // 0x8FFD0 - 0xEB200
check_XL_USB = Nand.Nand.unecc(check_XL_USB);
}

byte[] patches = new byte[0x1000];

if (nand.bigblock)
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 @@
04-24-2022 01:05:14
04-24-2022 02:26:30

0 comments on commit 94f4bd8

Please sign in to comment.