Skip to content

Commit d00dcad

Browse files
committed
added support for 9.0 BOOT1 + fw detection improved
1 parent 4ba0583 commit d00dcad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

NxNandManager/NxStorage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1982,7 +1982,7 @@ int NxStorage::fat32_read(const char* partition)
19821982
return -1;
19831983

19841984
auto printEntry = [this](fat32_dir_entry *cur_entry, fs_attr fs, u64 root_addr) -> int {
1985-
//if (!DEBUG_MODE)
1985+
if (!DEBUG_MODE)
19861986
return 1;
19871987

19881988
char str_buff[20];
@@ -2049,7 +2049,7 @@ int NxStorage::fat32_read(const char* partition)
20492049

20502050
// Check for firmare version in play report
20512051
bool search_fmw = FALSE;
2052-
if (play_report_off > 0 && strlen(fw_version) < 1 && readCluster(buffer, play_report_off) > 0)
2052+
if (play_report_off > 0 && readCluster(buffer, play_report_off) > 0)
20532053
{
20542054
search_fmw = true;
20552055

NxNandManager/NxStorage.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ static MagicOffsets mgkOffArr[] =
177177
{ 0x40AF8,"504B3131", 4, BOOT1, 7},
178178
{ 0x40ADC,"504B3131", 4, BOOT1, 8},
179179
{ 0x40ACC,"504B3131", 4, BOOT1, 8.1},
180+
{ 0x40AC0,"504B3131", 4, BOOT1, 9},
180181
// RAWNAND -> Look for GPT partition
181182
{ 0x200, "4546492050415254", 8, RAWNAND, 0 }
182183
};
@@ -203,7 +204,7 @@ struct NxSytemTitles {
203204
};
204205

205206

206-
static NxSytemTitles sytemTitlesArr[] = {
207+
static NxSytemTitles sytemTitlesArr[] = {
207208
{ "9.0.0", "a6af05b33f8f903aab90c8b0fcbcc6a4.nca"},
208209
{ "8.1.0", "7eedb7006ad855ec567114be601b2a9d.nca"},
209210
{ "8.0.1", "6c5426d27c40288302ad616307867eba.nca"},
@@ -229,7 +230,7 @@ static NxSytemTitles sytemTitlesArr[] = {
229230
{ "2.2.0", "7f90353dff2d7ce69e19e07ebc0d5489.nca"},
230231
{ "2.1.0", "e9b3e75fce00e52fe646156634d229b4.nca"},
231232
{ "2.0.0", "7a1f79f8184d4b9bae1755090278f52c.nca"},
232-
{ "1.0.0", "117f7b9c7da3e8cef02340596af206b3.nca"}
233+
{ "1.0.0", "a1b287e07f8455e8192f13d0e45a2aaf.nca"}
233234
};
234235

235236
static NxSytemTitles sytemExFatTitlesArr[] = {

0 commit comments

Comments
 (0)