mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 09:49:21 +01:00
put a stupid picture showing the stupid people what stupid USB port to plug in their stupid HDD. issue 941
This commit is contained in:
parent
2ecdeea5a9
commit
4b361ab3ab
File diff suppressed because one or more lines are too long
@ -510,4 +510,7 @@ extern const u32 pegi_16_png_size;
|
|||||||
extern const u8 pegi_18_png[];
|
extern const u8 pegi_18_png[];
|
||||||
extern const u32 pegi_18_png_size;
|
extern const u32 pegi_18_png_size;
|
||||||
|
|
||||||
|
extern const u8 usbport_png[];
|
||||||
|
extern const u32 usbport_png_size;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
BIN
source/images/usbport.png
Normal file
BIN
source/images/usbport.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 63 KiB |
@ -59,6 +59,12 @@ static void BootUpProblems()
|
|||||||
bootimage.SetPosition(320-1.2*bootimage.GetWidth()/2, 240-1.2*bootimage.GetHeight()/2);
|
bootimage.SetPosition(320-1.2*bootimage.GetWidth()/2, 240-1.2*bootimage.GetHeight()/2);
|
||||||
bootimage.SetScale(1.2);
|
bootimage.SetScale(1.2);
|
||||||
|
|
||||||
|
GuiImageData usbimageData(usbport_png);
|
||||||
|
GuiImage usbimage(&usbimageData);
|
||||||
|
usbimage.SetPosition(400,300);
|
||||||
|
usbimage.SetScale(.7);
|
||||||
|
usbimage.SetAlpha(200);
|
||||||
|
|
||||||
time_t curtime;
|
time_t curtime;
|
||||||
time_t endtime = time(0) + 30;
|
time_t endtime = time(0) + 30;
|
||||||
do {
|
do {
|
||||||
@ -89,12 +95,14 @@ static void BootUpProblems()
|
|||||||
while(curtime == time(0)) {
|
while(curtime == time(0)) {
|
||||||
boottext.Draw();
|
boottext.Draw();
|
||||||
bootimage.Draw();
|
bootimage.Draw();
|
||||||
|
if (endtime-curtime<15)usbimage.Draw();
|
||||||
Menu_Render();
|
Menu_Render();
|
||||||
}
|
}
|
||||||
} while((endtime-time(0)) > 0);
|
} while((endtime-time(0)) > 0);
|
||||||
|
|
||||||
if(ret2 < 0) {
|
if(ret2 < 0) {
|
||||||
boottext.SetText("ERROR: USB device could not be loaded!");
|
boottext.SetText("ERROR: USB device could not be loaded!");
|
||||||
|
usbimage.Draw();
|
||||||
bootimage.Draw();
|
bootimage.Draw();
|
||||||
boottext.Draw();
|
boottext.Draw();
|
||||||
Menu_Render();
|
Menu_Render();
|
||||||
|
Loading…
Reference in New Issue
Block a user