2009-10-01 01:10:58 +02:00
|
|
|
#ifndef _XML_H_
|
|
|
|
#define _XML_H_
|
|
|
|
|
|
|
|
#include <mxml.h>
|
|
|
|
|
|
|
|
// open database, close database, load info for a game
|
2010-09-24 02:48:03 +02:00
|
|
|
bool OpenXMLDatabase(char* xmlfilepath, char* argdblang, bool argJPtoEN, bool openfile, bool loadtitles, bool keepopen);
|
2010-09-19 22:25:12 +02:00
|
|
|
void CloseXMLDatabase();
|
2009-10-01 01:10:58 +02:00
|
|
|
|
|
|
|
#define XML_ELEMMAX 15
|
|
|
|
|
2010-09-24 02:48:03 +02:00
|
|
|
bool OpenXMLFile(char* filename);
|
|
|
|
void LoadTitlesFromXML(char *langcode, bool forcejptoen);
|
|
|
|
void GetPublisherFromGameid(char *idtxt, char *dest, int destsize);
|
|
|
|
const char *ConvertLangTextToCode(char *langtext);
|
*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 ConvertRating(const char *ratingvalue, const char *fromrating, const char *torating);
|
2010-09-24 02:48:03 +02:00
|
|
|
char *MemInfo();
|
|
|
|
void GetTextFromNode(mxml_node_t *currentnode, mxml_node_t *topnode, const char *nodename, const char *attributename,
|
|
|
|
char *value, int descend, char *dest, int destsize);
|
|
|
|
char * get_nodetext(mxml_node_t *node, char *buffer, int buflen);
|
2009-12-12 19:04:35 +01:00
|
|
|
|
2009-10-01 01:10:58 +02:00
|
|
|
#endif
|
|
|
|
|