fileData;
- for (const QString& filePath : selectedFiles) {
+
+ for (const QString& filePath : selectedFiles)
+ {
QVariantMap data = hashData.value(filePath);
QVariantMap jsonData = data["json"].toMap();
fileData[filePath] = jsonData;
+
QVariantMap stubs = jsonData["stubs"].toMap();
- for (auto it = stubs.begin(); it != stubs.end(); ++it) {
+
+ for (auto it = stubs.begin(); it != stubs.end(); ++it)
+ {
allSyscalls.insert(it.key());
}
}
+
QFile file(exportPath);
- if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) {
- QMessageBox::critical(this, "Bind - v1.3.0", "Could not create Export File.");
+
+ if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
+ {
+ QMessageBox::critical(this, "Bind - v1.3.1", "Could not create Export File.");
return;
}
+
QTextStream stream(&file);
stream.setCodec("UTF-8");
+
stream << "\n";
stream << "\n\n";
stream << "\n";
@@ -508,73 +734,120 @@ void HashCompareDialog::exportAsHtml(const QString& exportPath, const QStringLis
stream << ".hash-type { font-weight: bold; color: #0b5394; }\n";
stream << "\n\n\n";
stream << "Bind - Hash Comparison
\n";
+
QString firstTimestamp = fileData.value(selectedFiles.first())["timestamp"].toString();
- if (firstTimestamp.isEmpty()) firstTimestamp = "Unknown";
+
+ if (firstTimestamp.isEmpty())
+ {
+ firstTimestamp = "Unknown";
+ }
+
stream << "Generated on: " << firstTimestamp << "
\n";
stream << "Hash Type: " << hashType << "
\n";
stream << "