diff --git a/source/libwiigui/gui_gamebrowser.cpp b/source/libwiigui/gui_gamebrowser.cpp index 172e64c8..441d8c3b 100644 --- a/source/libwiigui/gui_gamebrowser.cpp +++ b/source/libwiigui/gui_gamebrowser.cpp @@ -643,24 +643,16 @@ void GuiGameBrowser::Update(GuiTrigger * t) if(updateCB) updateCB(this); -} - +} + void GuiGameBrowser::Reload(struct discHdr * l, int count) { LOCK(this); - gameList = l; - gameCnt = count; - if (gameCnt == 0) { - focus = 0; - dontsetfocus = 1; - } else { - dontsetfocus = 0; - focus = 1; - selectedItem = 0; - } - gameList = l; - scrollbaron = (gameCnt > THEME.pagesize) ? 1 : 0; - pagesize = (gameCnt > THEME.pagesize) ? THEME.pagesize : gameCnt; + gameList = l; + gameCnt = count; + scrollbaron = (gameCnt > THEME.pagesize) ? 1 : 0; + pagesize = (gameCnt > THEME.pagesize) ? THEME.pagesize : gameCnt; + selectedItem = 0; listOffset = 0; for(int i=0; i