@@ -1982,7 +1982,7 @@ int NxStorage::fat32_read(const char* partition)
1982
1982
return -1 ;
1983
1983
1984
1984
auto printEntry = [this ](fat32_dir_entry *cur_entry, fs_attr fs, u64 root_addr) -> int {
1985
- if (!DEBUG_MODE)
1985
+ // if (!DEBUG_MODE)
1986
1986
return 1 ;
1987
1987
1988
1988
char str_buff[20 ];
@@ -2048,7 +2048,7 @@ int NxStorage::fat32_read(const char* partition)
2048
2048
2049
2049
2050
2050
// Check for firmare version in play report
2051
- bool search_fmw = FALSE ;
2051
+ bool search_fmw = FALSE , report_based_fwm = FALSE ;
2052
2052
if (play_report_off > 0 && readCluster (buffer, play_report_off) > 0 )
2053
2053
{
2054
2054
search_fmw = true ;
@@ -2070,6 +2070,7 @@ int NxStorage::fat32_read(const char* partition)
2070
2070
if (DEBUG_MODE) printf (" Newer firmware version found in PLAY REPORTS (%s) \n " , fwv);
2071
2071
memcpy (fw_version, fwv, 5 );
2072
2072
fw_detected = true ;
2073
+ report_based_fwm = true ;
2073
2074
}
2074
2075
}
2075
2076
@@ -2081,7 +2082,7 @@ int NxStorage::fat32_read(const char* partition)
2081
2082
2082
2083
// Check form firmware version in journal
2083
2084
if (journal_report_off > 0 && (search_fmw || strlen (serial_number) <= 3 ) && readCluster (buffer, journal_report_off) > 0 )
2084
- {
2085
+ {
2085
2086
if (DEBUG_MODE) printf (" Searching patterns in JOURNAL at offset %s\n " , int_to_hex (journal_report_off).c_str ());
2086
2087
2087
2088
u64 cur_off = journal_report_off + CLUSTER_SIZE;
@@ -2103,6 +2104,7 @@ int NxStorage::fat32_read(const char* partition)
2103
2104
if (DEBUG_MODE) printf (" Newer firmware version found in JOURNAL (%s) \n " , fwv);
2104
2105
memcpy (fw_version, fwv, 5 );
2105
2106
fw_detected = true ;
2107
+ report_based_fwm = true ;
2106
2108
}
2107
2109
}
2108
2110
}
@@ -2125,7 +2127,7 @@ int NxStorage::fat32_read(const char* partition)
2125
2127
}
2126
2128
}
2127
2129
2128
- if (fw_detected && search_fmw)
2130
+ if (report_based_fwm && search_fmw)
2129
2131
strcat (fw_version, " (or higher)" );
2130
2132
2131
2133
if (NULL != p_crypto)
0 commit comments