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;
|
|
|
|
|
|
|
|
} 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
|
|
|
|
const char * GetTitle(const char * id);
|
|
|
|
//! Overload
|
|
|
|
const char * GetTitle(const u8 * id) { return GetTitle((const char *) id); };
|
|
|
|
//! Overload
|
|
|
|
const char * GetTitle(const struct discHdr *header);
|
|
|
|
|
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
|