Ejemplo n.º 1
0
bool savePluginXml(QDomDocument* xmlDoc, QString filename)
{
	// ***** Сохраняет переданный xml документ в файл с указанным именем в каталог psidata/sof_game
	if (PluginHosts::appInfoHost) {
		QString path = PluginHosts::appInfoHost->appHomeDir(ApplicationInfoAccessingHost::DataLocation) + QDir::separator() + "sof_game";
		return saveXmlToFile(xmlDoc, path + QDir::separator() + filename);
	}
	return false;
}
Ejemplo n.º 2
0
bool TreeImportExport::exportTreeList(const std::map<DWORD_PTR, ImportModuleThunk> & moduleList, const Process * process, DWORD_PTR addressOEP, DWORD_PTR addressIAT, DWORD sizeIAT)
{
	TiXmlDocument doc;

	TiXmlDeclaration * decl = new TiXmlDeclaration("1.0", "", "");
	doc.LinkEndChild(decl);

	TiXmlElement * rootElement = new TiXmlElement("target");

	setTargetInformation(rootElement, process, addressOEP, addressIAT, sizeIAT);

	addModuleListToRootElement(rootElement, moduleList);
	
	doc.LinkEndChild(rootElement);

	return saveXmlToFile(doc, xmlPath);
}