mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-25 20:56:53 +01:00
45e15bdb0b
*Fixed loading languages *Fixed wiitdb download *Changed sorting/favorite stuff. You can now have favorite mode and abc/playcount/ranking sorts as well *Change to not allow FAT32/NTFS partitions with Waninkokos cIOS Rev < 18 *Fixed settings path to default to the boot device *Set default cIOS to 222 now if no config exists. *Removed support for Hermes v2 and v3 (only v4+ is supported now) *Fixed game settings saving *Maybe more i don't remember
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#ifndef GAME_LIST_H_
|
|
#define GAME_LIST_H_
|
|
|
|
#include <vector>
|
|
#include "wstring.hpp"
|
|
#include "usbloader/disc.h"
|
|
|
|
class GameList
|
|
{
|
|
public:
|
|
GameList();
|
|
int ReadGameList();
|
|
int size() { return FilteredList.size(); };
|
|
int GameCount() { return FullGameList.size(); };
|
|
int FilterList(const wchar_t * gameFilter = NULL);
|
|
int LoadUnfiltered();
|
|
struct discHdr * at(int i);
|
|
struct discHdr * operator[](int i) { return at(i); };
|
|
struct discHdr * GetDiscHeader(const char * gameID);
|
|
const wchar_t * GetCurrentFilter() { return GameFilter.c_str(); };
|
|
const wchar_t * GetAvailableSearchChars() { return AvailableSearchChars.c_str(); };
|
|
void SortList();
|
|
void clear();
|
|
protected:
|
|
static bool NameSortCallback(const struct discHdr *a, const struct discHdr *b);
|
|
static bool PlaycountSortCallback(const struct discHdr *a, const struct discHdr *b);
|
|
static bool RankingSortCallback(const struct discHdr *a, const struct discHdr *b);
|
|
|
|
wString AvailableSearchChars;
|
|
wString GameFilter;
|
|
std::vector<struct discHdr *> FilteredList;
|
|
std::vector<struct discHdr> FullGameList;
|
|
};
|
|
|
|
extern GameList gameList;
|
|
|
|
#endif
|