feat: Add Markdown Report export option (#1441)

This commit is contained in:
Nik
2023-11-22 08:26:31 +01:00
committed by GitHub
parent 909f4b7fe8
commit 095da62250
15 changed files with 259 additions and 46 deletions

View File

@@ -1098,4 +1098,22 @@ namespace hex {
}
namespace ContentRegistry::Reports {
namespace impl {
std::vector<ReportGenerator> &getGenerators() {
static std::vector<ReportGenerator> generators;
return generators;
}
}
void addReportProvider(impl::Callback callback) {
impl::getGenerators().push_back(impl::ReportGenerator { std::move(callback ) });
}
}
}