Skip to content

Commit

Permalink
Update main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnsAnns authored Jun 16, 2019
1 parent 2962717 commit 4f78520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ int main(int argc, char **argv)

fprintf(log_f, "Opening nereba.bin\n");
struct stat file_stat;
if(stat("sdmc:/nereba/nereba.bin", &file_stat) < 0)
if(stat("sdmc:/atmosphere/reboot_payload.bin", &file_stat) < 0)
{
fprintf(log_f, "Failed to get payload size!\nMake sure nereba.bin is in the nereba folder on the SD card!\n");
fclose(log_f);
fatalSimple(MAKERESULT(MODULE_NEREBA, 4));
}

FILE *payload_f = fopen("sdmc:/nereba/nereba.bin", "rb");
FILE *payload_f = fopen("sdmc:/atmosphere/reboot_payload.bin", "rb");
if(!payload_f)
{
fprintf(log_f, "Failed to open payload!\n");
Expand Down

0 comments on commit 4f78520

Please sign in to comment.