2009-06-09 07:20:49 +02:00
|
|
|
|
|
|
|
#ifndef _XML_H_
|
|
|
|
#define _XML_H_
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct gameXMLinfo
|
|
|
|
{
|
2009-06-17 13:10:25 +02:00
|
|
|
char id[10];
|
|
|
|
char version[500];
|
2009-06-09 07:20:49 +02:00
|
|
|
char region[10];
|
2009-06-17 13:10:25 +02:00
|
|
|
char title[500];
|
2009-06-09 07:20:49 +02:00
|
|
|
char synopsis[2000];
|
2009-06-17 13:10:25 +02:00
|
|
|
char title_EN[500];
|
2009-06-09 07:20:49 +02:00
|
|
|
char synopsis_EN[2000];
|
2009-06-17 13:10:25 +02:00
|
|
|
char locales[100][500];
|
|
|
|
char developer[500];
|
|
|
|
char publisher[500];
|
|
|
|
char publisherfromid[500];
|
2009-06-09 07:20:49 +02:00
|
|
|
char year[10];
|
|
|
|
char month[10];
|
|
|
|
char day[10];
|
2009-06-17 13:10:25 +02:00
|
|
|
char genre[500];
|
|
|
|
char genresplit[100][500];
|
|
|
|
char ratingtype[10];
|
|
|
|
char ratingvalue[10];
|
|
|
|
char ratingdescriptors[100][500];
|
|
|
|
char ratingvalueCERO[10];
|
|
|
|
char ratingvalueESRB[10];
|
|
|
|
char ratingvaluePEGI[10];
|
|
|
|
char wifiplayers[10];
|
|
|
|
char wififeatures[100][500];
|
|
|
|
char players[10];
|
|
|
|
char accessories[100][500];
|
|
|
|
char accessories_required[100][500];
|
2009-06-09 07:20:49 +02:00
|
|
|
char iso_crc[10];
|
|
|
|
char iso_md5[50];
|
|
|
|
char iso_sha1[50];
|
2009-06-14 05:42:46 +02:00
|
|
|
int descriptorCnt;
|
2009-06-09 07:20:49 +02:00
|
|
|
int accessoryCnt;
|
|
|
|
int accessoryReqCnt;
|
2009-06-13 08:32:02 +02:00
|
|
|
int wifiCnt;
|
2009-06-17 13:10:25 +02:00
|
|
|
|
2009-06-09 07:20:49 +02:00
|
|
|
} ;
|
|
|
|
|
|
|
|
struct gameXMLinfo gameinfo;
|
|
|
|
struct gameXMLinfo gameinfo_reset;
|
|
|
|
|
|
|
|
bool OpenXMLFile(char* filename);
|
2009-06-11 10:13:08 +02:00
|
|
|
bool LoadGameInfoFromXML(char* gameid, char* langcode);
|
2009-06-09 07:20:49 +02:00
|
|
|
void LoadTitlesFromXML(char *langcode, bool forcejptoen);
|
|
|
|
void GetPublisherFromGameid(char *idtxt, char *dest);
|
|
|
|
char *ConvertLangTextToCode(char *langtext);
|
|
|
|
void ConvertRating(char *ratingvalue, char *fromrating, char *torating, char *destvalue);
|
|
|
|
void PrintGameInfo(bool showfullinfo);
|
|
|
|
void FreeXMLMemory();
|
|
|
|
|
|
|
|
void title_set(char *id, char *title);
|
2009-06-14 13:47:21 +02:00
|
|
|
char* trimcopy(char *dest, char *src, int size);
|
2009-06-09 07:20:49 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|