usbloadergx/source/xml/xml.h

24 lines
850 B
C
Raw Normal View History

#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);
void CloseXMLDatabase();
#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);
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);
#endif