mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-12-19 08:21:54 +01:00
*Fixed install bug when 0 Games are on the HDD
This commit is contained in:
parent
feda5a7ba6
commit
4581890650
@ -13,7 +13,7 @@ int USBDevice_Init()
|
|||||||
//right now only mounts first partition and only under IOS36
|
//right now only mounts first partition and only under IOS36
|
||||||
__io_usbstorage.startup();
|
__io_usbstorage.startup();
|
||||||
|
|
||||||
if (fatMountSimple("USB", &__io_usbstorage, 0, CACHE)) {
|
if (fatMount("USB", &__io_usbstorage, 0, CACHE)) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ GuiGameBrowser::GuiGameBrowser(int w, int h, struct discHdr * l, int gameCnt, co
|
|||||||
{
|
{
|
||||||
width = w;
|
width = w;
|
||||||
height = h;
|
height = h;
|
||||||
|
if (gameCnt == 0) gameCnt = 1;
|
||||||
this->gameCnt = gameCnt;
|
this->gameCnt = gameCnt;
|
||||||
gameList = l;
|
gameList = l;
|
||||||
pagesize = (gameCnt > THEME.pagesize) ? THEME.pagesize : gameCnt;
|
pagesize = (gameCnt > THEME.pagesize) ? THEME.pagesize : gameCnt;
|
||||||
|
Loading…
Reference in New Issue
Block a user