Skip to content
This repository has been archived by the owner on Aug 17, 2019. It is now read-only.

Commit

Permalink
Moving emuNAND name
Browse files Browse the repository at this point in the history
  • Loading branch information
mid-kid committed Jan 23, 2016
1 parent 963d6e0 commit fa095be
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/main.c
Expand Up @@ -13,7 +13,6 @@
#include "fatfs/sdmmc/sdmmc.h"

#define MAX_EMUNANDS 9
#define NAME_MAGIC 0x454D414E

void menu_select_patches()
{
Expand Down Expand Up @@ -72,8 +71,8 @@ void menu_emunand()
for (count = 0; count <= MAX_EMUNANDS; count++) {
if (get_emunand_offsets(count * gap, NULL, NULL) == 0) {
if (sdmmc_sdcard_readsectors(count * gap, 1, fcram_temp) == 0 &&
*(uint32_t *)fcram_temp == NAME_MAGIC) {
memcpy(emunands[count], fcram_temp + 4, 0x1F);
memcmp(fcram_temp + 11, "NAME", 4) == 0) {
memcpy(emunands[count], fcram_temp + 15, 0x1F);
emunands[count][0x1F] = 0;
} else {
memcpy(emunands[count], unnamed, sizeof(unnamed));
Expand Down

0 comments on commit fa095be

Please sign in to comment.