Fix the theme extdata error screen (#109)

* fix theme extdata not being present hanging the console

* custom draw_text_center function that takes care of newlines so the theme extdata error text is no longer broken
This commit is contained in:
LiquidFenrir
2017-12-09 06:50:34 +01:00
committed by GitHub
parent f261f152c9
commit b72f266e40
2 changed files with 35 additions and 8 deletions

View File

@@ -140,6 +140,12 @@ int main(void)
while(aptMainLoop())
{
if(R_FAILED(archive_result) && current_mode == MODE_THEMES)
{
throw_error("Theme extdata does not exist!\nSet a default theme from the home menu.", ERROR_LEVEL_ERROR);
break;
}
hidScanInput();
u32 kDown = hidKeysDown();
u32 kHeld = hidKeysHeld();
@@ -154,11 +160,6 @@ int main(void)
if(kDown & KEY_START) break;
if(R_FAILED(archive_result) && current_mode == MODE_THEMES)
{
throw_error("Theme extdata does not exist!\nSet a default theme from the home menu.", ERROR_LEVEL_ERROR);
continue;
}
if(!install_mode)
{