diff --git a/HBC/META.XML b/HBC/META.XML index be2f4f94..3c5ca43f 100644 --- a/HBC/META.XML +++ b/HBC/META.XML @@ -2,8 +2,8 @@ USB Loader GX USB Loader GX Team - 1.0 r856 - 200912110630 + 1.0 r857 + 200912112033 Loads games from USB-devices USB Loader GX is a libwiigui based USB iso loader with a wii-like GUI. You can install games to your HDDs and boot them with shorter loading times. The interactive GUI is completely controllable with WiiMote, Classic Controller or GC Controller. diff --git a/source/libwiigui/gui_numpad.cpp b/source/libwiigui/gui_numpad.cpp index ce5364df..2744790c 100644 --- a/source/libwiigui/gui_numpad.cpp +++ b/source/libwiigui/gui_numpad.cpp @@ -21,8 +21,8 @@ GuiNumpad::GuiNumpad(char * t, u32 max) { - width = 540; - height = 400; + width = 400; + height = 370; selectable = true; focus = 0; // allow focus alignmentHor = ALIGN_CENTRE; @@ -61,20 +61,16 @@ GuiNumpad::GuiNumpad(char * t, u32 max) keyBackOverImg = new GuiImage(keyMediumOver); keyBackText = new GuiText("Back", 20, (GXColor){0, 0, 0, 0xff}); - keyBack = new GuiButton(keyBackImg, keyBackOverImg, 0, 3, 11*42+40, 0*42+120, trigA, keySoundOver, keySoundClick,1); + keyBack = new GuiButton(keyBackImg, keyBackOverImg, ALIGN_CENTRE, ALIGN_MIDDLE, 90, 80, trigA, keySoundOver, keySoundClick,1); keyBack->SetLabel(keyBackText); keyBack->SetTrigger(trigB); - keyBack->SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE); - keyBack->SetPosition(50, 80); this->Append(keyBack); keyClearImg = new GuiImage(keyMedium); keyClearOverImg = new GuiImage(keyMediumOver); keyClearText = new GuiText("Clear", 20, (GXColor){0, 0, 0, 0xff}); - keyClear = new GuiButton(keyClearImg, keyClearOverImg, 0, 3, (10*42+40), 4*42+120, trigA, keySoundOver, keySoundClick,1); + keyClear = new GuiButton(keyClearImg, keyClearOverImg, ALIGN_CENTRE, ALIGN_MIDDLE, -90, 80, trigA, keySoundOver, keySoundClick,1); keyClear->SetLabel(keyClearText); - keyClear->SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE); - keyClear->SetPosition(-130, 80); this->Append(keyClear); char txt[2] = { 0, 0 }; @@ -82,20 +78,19 @@ GuiNumpad::GuiNumpad(char * t, u32 max) { if (keys[i] != '\0') { + int col = i % 3; + int row = i / 3; + keyImg[i] = new GuiImage(keyMedium); keyImgOver[i] = new GuiImage(keyMediumOver); txt[0] = keys[i]; keyTxt[i] = new GuiText(txt, 20, (GXColor){0, 0, 0, 0xff}); keyTxt[i]->SetAlignment(ALIGN_CENTRE, ALIGN_BOTTOM); keyTxt[i]->SetPosition(0, -10); - keyBtn[i]= new GuiButton(keyImg[i], keyImgOver[i], 0, 3, (42+21*i+40), i*42+120, trigA, keySoundOver, keySoundClick, 1); + keyBtn[i]= new GuiButton(keyImg[i], keyImgOver[i], ALIGN_CENTRE, ALIGN_MIDDLE, -90 + 90 * col, -70 + 50 * row, trigA, keySoundOver, keySoundClick, 1); keyBtn[i]->SetLabel(keyTxt[i]); keyBtn[i]->SetAlignment(ALIGN_CENTRE, ALIGN_MIDDLE); - int col = i % 3; - int row = i / 3; - - keyBtn[i]->SetPosition(-130 + 90 * col, -70 + 50 * row); this->Append(keyBtn[i]); } } diff --git a/source/main.cpp b/source/main.cpp index 9ca229e5..8e945b96 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -18,7 +18,7 @@ #include #include -extern "C" { //not sure if this is in the libogc that the buildbot is using so it isnt used yet +extern "C" { extern void __exception_setreload(int t); } @@ -179,21 +179,20 @@ void InitTextVideo () { int main(int argc, char *argv[]) { + setlocale(LC_ALL, "en.UTF-8"); + geckoinit = InitGecko(); - if (hbcStubAvailable()) { + if (hbcStubAvailable() || geckoinit) { InitTextVideo(); } - // DEBUG_Init(GDBSTUB_DEVICE_USB, 1); //_break(); -// __exception_setreload(5);//auto reset is code dump nobody gives us codedump info anyways. - setlocale(LC_ALL, "en.UTF-8"); - geckoinit = InitGecko(); - if (geckoinit)InitTextVideo(); - gprintf("\x1b[2J"); - gprintf("------------------"); + __exception_setreload(5);//auto reset code dump nobody gives us codedump info anyways. + + + gprintf("\n\n------------------"); gprintf("\nUSB Loader GX rev%s",GetRev()); gprintf("\nmain(%d", argc); for (int i=0;iid); diff --git a/source/wad/title.c b/source/wad/title.c index f28a9178..0d5de338 100644 --- a/source/wad/title.c +++ b/source/wad/title.c @@ -944,7 +944,6 @@ s32 getIOSrev(u64 req) out: gprintf(" = %d",ret); return ret; -// TITLE_ID(0x00000001,0x000000de) }