feat: add runtime catalog dumping

This commit is contained in:
2026-04-09 23:11:31 -03:00
parent 7427357bc5
commit 7ec6e385a0
+11
View File
@@ -102,6 +102,17 @@ bool Spoofer::parseCatalog(std::string data)
return false;
}
std::string outPath = utils::getExePath() + "catalog.json";
std::ofstream file(outPath);
if (file.is_open())
{
file << data;
file.close();
Log::verbose("Raw catalog saved to {}", outPath);
}
else
Log::error("Unable to write to catalog.json");
try
{
const auto& catalogData = doc.at("data");