Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Commit

Permalink
Set the titleversion to v1040(v1.1.0). Added dedicated error handling…
Browse files Browse the repository at this point in the history
… for httpc 0xd8a0a046. Minor other change.
  • Loading branch information
yellows8 committed Feb 17, 2016
1 parent bfc5103 commit 4fe6e19
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ $(OUTPUT).elf : $(OFILES)
@bannertool makebanner -i "$<" -ca ../Resources/hblauncher_loader.cwav -o "$@"

$(OUTPUT).cia : $(OUTPUT).elf ../Resources/hblauncher_loader.icn ../Resources/hblauncher_loader.bnr
@makerom -f cia -o "$@" -elf $(OUTPUT).elf -rsf ../Resources/hblauncher_loader.rsf -icon ../Resources/hblauncher_loader.icn -banner ../Resources/hblauncher_loader.bnr -exefslogo
@makerom -f cia -o "$@" -elf $(OUTPUT).elf -rsf ../Resources/hblauncher_loader.rsf -icon ../Resources/hblauncher_loader.icn -banner ../Resources/hblauncher_loader.bnr -exefslogo -ver 1040
@echo "built ... hblauncher_loader.cia"

#---------------------------------------------------------------------------------
Expand Down
22 changes: 18 additions & 4 deletions source/hblauncher_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,14 @@ Result load_hblauncher()
if(ret!=0)
{
printf("Failed to request the actual payload URL: 0x%08x.\n", (unsigned int)ret);
printf("If the server isn't down, and the HTTP request was actually done, this may mean your system-version or region isn't supported by the hblauncher-payload currently.\n");
if(ret==0xd8a0a046)
{
printf("No usable Internet-connection is likely available.\n");
}
else
{
printf("If the server isn't down, and the HTTP request was actually done, this may mean your system-version or region isn't supported by the hblauncher-payload currently.\n");
}
return ret;
}

Expand All @@ -286,7 +293,14 @@ Result load_hblauncher()
if(ret!=0)
{
printf("Failed to download the actual payload with HTTP: 0x%08x.\n", (unsigned int)ret);
printf("If the server isn't down, and the HTTP request was actually done, this may mean your system-version or region isn't supported by the hblauncher-payload currently.\n");
if(ret==0xd8a0a046)
{
printf("No usable Internet-connection is likely available.\n");
}
else
{
printf("If the server isn't down, and the HTTP request was actually done, this may mean your system-version or region isn't supported by the hblauncher-payload currently.\n");
}
return ret;
}

Expand Down Expand Up @@ -426,7 +440,7 @@ int main(int argc, char **argv)

httpcExit();

if(ret!=0)printf("An error occured, please report this to here if it persists(or comment on an already existing issue if needed), with an image of your 3DS system: https://github.com/yellows8/hblauncher_loader/issues\n");
if(ret!=0 && ret!=0xd8a0a046)printf("An error occured, please report this to here if it persists(or comment on an already existing issue if needed), with an image of your 3DS system: https://github.com/yellows8/hblauncher_loader/issues\n");

printf("Press the START button to exit.\n");
// Main loop
Expand All @@ -437,7 +451,7 @@ int main(int argc, char **argv)

u32 kDown = hidKeysDown();
if (kDown & KEY_START)
break; // break in order to return to hbmenu
break;
}

// Exit services
Expand Down

0 comments on commit 4fe6e19

Please sign in to comment.