add "downloading" text to qrcode scanning

i know it's not the prettiest idea to put it in draw_theme_install, but it seemed like the most fitting, and i didnt want to create another function for it
This commit is contained in:
ZetaDesigns
2017-09-06 17:49:10 +02:00
parent 897dc52424
commit 674fa9d9bf
3 changed files with 7 additions and 3 deletions

View File

@@ -40,6 +40,7 @@
#define SHUFFLE_INSTALL 1 #define SHUFFLE_INSTALL 1
#define BGM_INSTALL 2 #define BGM_INSTALL 2
#define UNINSTALL 3 #define UNINSTALL 3
#define DOWNLOADING 3
#define ERROR 0 #define ERROR 0
#define WARNING 1 #define WARNING 1

View File

@@ -96,7 +96,7 @@ Result http_get(char *url, char *path)
ret = httpcSetKeepAlive(&context, HTTPC_KEEPALIVE_ENABLED); ret = httpcSetKeepAlive(&context, HTTPC_KEEPALIVE_ENABLED);
ret = httpcAddRequestHeaderField(&context, "User-Agent", "Anemone3DS/1.1.0"); ret = httpcAddRequestHeaderField(&context, "User-Agent", "Anemone3DS/1.1.0");
ret = httpcAddRequestHeaderField(&context, "Connection", "Keep-Alive"); ret = httpcAddRequestHeaderField(&context, "Connection", "Keep-Alive");
draw_theme_install(DOWNLOADING);
ret = httpcBeginRequest(&context); ret = httpcBeginRequest(&context);
if (ret != 0) if (ret != 0)
{ {

View File

@@ -170,6 +170,9 @@ void draw_theme_install(int install_type)
case 2: case 2:
pp2d_draw_text_center(GFX_TOP, 120, 0.8, 0.8, COLOR_WHITE, "Installing BGM..."); pp2d_draw_text_center(GFX_TOP, 120, 0.8, 0.8, COLOR_WHITE, "Installing BGM...");
break; break;
case 3:
pp2d_draw_text_center(GFX_TOP, 120, 0.8, 0.8, COLOR_WHITE, "Downloading...");
break;
default: default:
break; break;
} }