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:
giantpune 2009-09-19 10:38:21 +00:00
parent 2ecdeea5a9
commit 4b361ab3ab
4 changed files with 12 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -510,4 +510,7 @@ extern const u32 pegi_16_png_size;
extern const u8 pegi_18_png[];
extern const u32 pegi_18_png_size;
extern const u8 usbport_png[];
extern const u32 usbport_png_size;
#endif

BIN
source/images/usbport.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

View File

@ -59,6 +59,12 @@ static void BootUpProblems()
bootimage.SetPosition(320-1.2*bootimage.GetWidth()/2, 240-1.2*bootimage.GetHeight()/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 endtime = time(0) + 30;
do {
@ -89,12 +95,14 @@ static void BootUpProblems()
while(curtime == time(0)) {
boottext.Draw();
bootimage.Draw();
if (endtime-curtime<15)usbimage.Draw();
Menu_Render();
}
} while((endtime-time(0)) > 0);
if(ret2 < 0) {
boottext.SetText("ERROR: USB device could not be loaded!");
usbimage.Draw();
bootimage.Draw();
boottext.Draw();
Menu_Render();