mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-10 13:35:07 +01:00
6f63f9cf05
*Added additional sort mode - "Sort by number of players" *Added support for multiple game partitions. Note: You can activate multiple game partitions support in the Loader Settings. When it is active, all games from all partitions will be listed in the game list. Partitions can be mixed up as you wish wbfs/fat/ntfs/ext. When the multiple partitions feature is activated than the partition in "Game/Install Partition" setting is taken for new game installation. Also the free space amount will be shown from that game installation partition. This will be clickable in the future listing all partitions with their sizes.
163 lines
5.0 KiB
C++
163 lines
5.0 KiB
C++
#ifndef GAMEBROWSEMENU_HPP_
|
|
#define GAMEBROWSEMENU_HPP_
|
|
|
|
#include "libwiigui/gui.h"
|
|
#include "libwiigui/gui_gamebrowser.h"
|
|
#include "libwiigui/gui_gamegrid.h"
|
|
#include "libwiigui/gui_gamecarousel.h"
|
|
#include "libwiigui/gui_searchbar.h"
|
|
#include "utils/ThreadedTask.hpp"
|
|
|
|
class GameBrowseMenu : public GuiWindow
|
|
{
|
|
public:
|
|
GameBrowseMenu();
|
|
~GameBrowseMenu();
|
|
static int Execute();
|
|
protected:
|
|
int MainLoop();
|
|
void ReloadBrowser();
|
|
int OpenClickedGame();
|
|
int GetSelectedGame();
|
|
int GetClickedGame();
|
|
void UpdateGameInfoText(const u8 * gameId);
|
|
void LoadCover(struct discHdr *header);
|
|
void CheckAlternativeDOL(const char * IDfull);
|
|
void CheckOcarina(const char * IDfull);
|
|
void CheckDiscSlotUpdate();
|
|
void UpdateFreeSpace(void *arg);
|
|
void UpdateClock();
|
|
static void UpdateCallback(void * e);
|
|
|
|
TCallback<GameBrowseMenu> HDDSizeCallback;
|
|
u32 DiscDriveCoverOld;
|
|
int returnMenu;
|
|
int gameSelectedOld;
|
|
int gameClicked;
|
|
int GridRowsPreSearch;
|
|
time_t lastrawtime;
|
|
bool show_searchwindow;
|
|
wchar_t searchChar;
|
|
std::vector<GuiButton *> ToolBar;
|
|
|
|
GuiGameBrowser * gameBrowser;
|
|
GuiGameGrid * gameGrid;
|
|
GuiGameCarousel * gameCarousel;
|
|
GuiSearchBar * searchBar;
|
|
|
|
GuiImageData * btnInstall;
|
|
GuiImageData * btnInstallOver;
|
|
GuiImageData * btnSettings;
|
|
GuiImageData * btnSettingsOver;
|
|
GuiImageData * btnpwroff;
|
|
GuiImageData * btnpwroffOver;
|
|
GuiImageData * btnhome;
|
|
GuiImageData * btnhomeOver;
|
|
GuiImageData * btnsdcardOver;
|
|
GuiImageData * btnsdcard;
|
|
GuiImageData * imgfavIcon;
|
|
GuiImageData * imgfavIcon_gray;
|
|
GuiImageData * imgsearchIcon;
|
|
GuiImageData * imgsearchIcon_gray;
|
|
GuiImageData * imgabcIcon;
|
|
GuiImageData * imgrankIcon;
|
|
GuiImageData * imgplayCountIcon;
|
|
GuiImageData * imgplayersSortIcon;
|
|
GuiImageData * imgarrangeGrid;
|
|
GuiImageData * imgarrangeGrid_gray;
|
|
GuiImageData * imgarrangeCarousel;
|
|
GuiImageData * imgarrangeCarousel_gray;
|
|
GuiImageData * imgarrangeList;
|
|
GuiImageData * imgarrangeList_gray;
|
|
GuiImageData * imgdvd;
|
|
GuiImageData * imgdvd_gray;
|
|
GuiImageData * imgLock;
|
|
GuiImageData * imgLock_gray;
|
|
GuiImageData * imgUnlock;
|
|
GuiImageData * imgUnlock_gray;
|
|
GuiImageData * homebrewImgData;
|
|
GuiImageData * homebrewImgDataOver;
|
|
GuiImageData * gameCover;
|
|
|
|
GuiTrigger * trigA;
|
|
GuiTrigger * trigHome;
|
|
GuiTrigger * trig1;
|
|
GuiTrigger * trig2;
|
|
|
|
GuiImage * installBtnImg;
|
|
GuiImage * installBtnImgOver;
|
|
GuiImage * settingsBtnImg;
|
|
GuiImage * settingsBtnImgOver;
|
|
GuiImage * homeBtnImg;
|
|
GuiImage * homeBtnImgOver;
|
|
GuiImage * poweroffBtnImg;
|
|
GuiImage * poweroffBtnImgOver;
|
|
GuiImage * sdcardImg;
|
|
GuiImage * sdcardImgOver;
|
|
GuiImage * favoriteBtnImg;
|
|
GuiImage * favoriteBtnImg_g;
|
|
GuiImage * searchBtnImg;
|
|
GuiImage * searchBtnImg_g;
|
|
GuiImage * sortBtnImg;
|
|
GuiImage * listBtnImg;
|
|
GuiImage * listBtnImg_g;
|
|
GuiImage * gridBtnImg;
|
|
GuiImage * gridBtnImg_g;
|
|
GuiImage * carouselBtnImg;
|
|
GuiImage * carouselBtnImg_g;
|
|
GuiImage * lockBtnImg;
|
|
GuiImage * lockBtnImg_g;
|
|
GuiImage * unlockBtnImg;
|
|
GuiImage * unlockBtnImg_g;
|
|
GuiImage * dvdBtnImg;
|
|
GuiImage * dvdBtnImg_g;
|
|
GuiImage * homebrewImg;
|
|
GuiImage * homebrewImgOver;
|
|
GuiImage * gameCoverImg;
|
|
|
|
GuiText * usedSpaceTxt;
|
|
GuiText * gamecntTxt;
|
|
GuiText * clockTimeBack;
|
|
GuiText * clockTime;
|
|
GuiText * GameRegionTxt;
|
|
GuiText * GameIDTxt;
|
|
|
|
GuiButton * gamecntBtn;
|
|
GuiButton * installBtn;
|
|
GuiButton * settingsBtn;
|
|
GuiButton * homeBtn;
|
|
GuiButton * poweroffBtn;
|
|
GuiButton * sdcardBtn;
|
|
GuiButton * gameInfo;
|
|
GuiButton * favoriteBtn;
|
|
GuiButton * searchBtn;
|
|
GuiButton * sortBtn;
|
|
GuiButton * listBtn;
|
|
GuiButton * gridBtn;
|
|
GuiButton * carouselBtn;
|
|
GuiButton * lockBtn;
|
|
GuiButton * dvdBtn;
|
|
GuiButton * homebrewBtn;
|
|
GuiButton * DownloadBtn;
|
|
GuiButton * idBtn;
|
|
|
|
GuiTooltip * installBtnTT;
|
|
GuiTooltip * settingsBtnTT;
|
|
GuiTooltip * homeBtnTT;
|
|
GuiTooltip * poweroffBtnTT;
|
|
GuiTooltip * sdcardBtnTT;
|
|
GuiTooltip * favoriteBtnTT;
|
|
GuiTooltip * searchBtnTT;
|
|
GuiTooltip * sortBtnTT;
|
|
GuiTooltip * listBtnTT;
|
|
GuiTooltip * gridBtnTT;
|
|
GuiTooltip * carouselBtnTT;
|
|
GuiTooltip * lockBtnTT;
|
|
GuiTooltip * dvdBtnTT;
|
|
GuiTooltip * homebrewBtnTT;
|
|
GuiTooltip * DownloadBtnTT;
|
|
GuiTooltip * IDBtnTT;
|
|
};
|
|
|
|
#endif
|