2010-10-28 11:00:52 +02:00
|
|
|
#ifndef WIITDB_TITLES_H_
|
|
|
|
#define WIITDB_TITLES_H_
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include <gctypes.h>
|
|
|
|
#include "usbloader/disc.h"
|
|
|
|
|
|
|
|
typedef struct _GameTitle
|
|
|
|
{
|
|
|
|
char GameID[7];
|
|
|
|
std::string Title;
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
int ParentalRating;
|
2010-10-28 11:00:52 +02:00
|
|
|
|
|
|
|
} GameTitle;
|
|
|
|
|
|
|
|
class CGameTitles
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
//! Set a game title from wiitdb
|
|
|
|
void SetGameTitle(const char * id, const char * title);
|
|
|
|
//! Overload
|
|
|
|
void SetGameTitle(const u8 * id, const char * title) { SetGameTitle((const char *) id, title); };
|
|
|
|
|
|
|
|
//! Get a game title
|
2011-01-13 20:05:31 +01:00
|
|
|
const char * GetTitle(const char * id) const;
|
2010-10-28 11:00:52 +02:00
|
|
|
//! Overload
|
2011-01-13 20:05:31 +01:00
|
|
|
const char * GetTitle(const u8 * id) const { return GetTitle((const char *) id); };
|
2010-10-28 11:00:52 +02:00
|
|
|
//! Overload
|
2011-01-13 20:05:31 +01:00
|
|
|
const char * GetTitle(const struct discHdr *header) const;
|
2010-10-28 11:00:52 +02:00
|
|
|
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
//! Get game parental rating
|
2011-01-13 20:05:31 +01:00
|
|
|
int GetParentalRating(const char * id) const;
|
*Completely rewrote the asynchron GuiImageData class (problems from switch Carousel<->Grid layour should be fixed now)
*Fixed bug mounting a wbfs partition which was formatted from an ext partition
*Rewrote the parental control feature. Removed loading pin or settings from the Wii Settings. Parental control is now completely managed in the loader from the settings selected and the password set.
*Saving password in config file is now encrypted
*Added loop to wait for usb when reloading the cIOS before game start
The parental control feature is filtering games like following when usb loader is locked:
level 0 (everyone 0+) > shows only games with lvl 0
level 1 (childs 7+) > shows games with lvl 0, 1
level 2 (teens 12+) > shows games with lvl 0, 1, 2
level 3 (mature 16+) > shows games with lvl 0, 1, 2, 3
level 4 (adults only 18+) > shows all games (lvl 0, 1, 2, 3, 4)
level 4 is default when creating new configs
2010-12-19 19:20:33 +01:00
|
|
|
|
2010-12-03 19:38:57 +01:00
|
|
|
//! Load Game Titles from WiiTDB
|
|
|
|
void LoadTitlesFromWiiTDB(const char * path);
|
2010-10-28 11:00:52 +02:00
|
|
|
//! Set default game titles
|
|
|
|
void SetDefault();
|
|
|
|
protected:
|
|
|
|
std::vector<GameTitle> TitleList;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern CGameTitles GameTitles;
|
|
|
|
|
|
|
|
#endif
|