feat: add runtime catalog dumping
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user