2026-01-30 20:23:39 +08:00
|
|
|
#include "Utils.hpp"
|
2026-01-31 11:28:03 +08:00
|
|
|
#include "Cli.hpp"
|
|
|
|
|
#include "Reporter.hpp"
|
2026-01-30 20:40:21 +08:00
|
|
|
#include "Ruleset.hpp"
|
2026-01-30 20:23:39 +08:00
|
|
|
#include <VTAll.hpp>
|
|
|
|
|
#include <yycc.hpp>
|
|
|
|
|
#include <yycc/carton/termcolor.hpp>
|
2026-01-30 20:40:21 +08:00
|
|
|
#include <yycc/string/op.hpp>
|
2026-01-30 20:23:39 +08:00
|
|
|
#include <yycc/patch/stream.hpp>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
using namespace yycc::patch::stream;
|
2026-01-30 20:40:21 +08:00
|
|
|
namespace strop = yycc::string::op;
|
2026-01-30 20:23:39 +08:00
|
|
|
namespace termcolor = yycc::carton::termcolor;
|
2026-01-30 15:23:01 +08:00
|
|
|
|
2026-01-31 11:28:03 +08:00
|
|
|
static bool ProcessCli() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void LoadVirtools() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void CheckRules() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2026-01-30 15:23:01 +08:00
|
|
|
int main(int argc, char *argv[]) {
|
2026-01-30 20:23:39 +08:00
|
|
|
|
|
|
|
|
// Show splash
|
2026-01-31 11:28:03 +08:00
|
|
|
std::cout << termcolor::colored(u8"" BMAPINSP_NAME, termcolor::Color::LightYellow)
|
2026-01-30 20:23:39 +08:00
|
|
|
<< " (based on LibCmo " LIBCMO_VER_STR ") built at " __DATE__ " " __TIME__ << std::endl
|
2026-01-31 11:28:03 +08:00
|
|
|
<< u8"" BMAPINSP_DESC << std::endl
|
2026-01-30 20:40:21 +08:00
|
|
|
<< std::endl;
|
2026-01-30 20:23:39 +08:00
|
|
|
|
|
|
|
|
// Create reporter
|
2026-01-31 11:28:03 +08:00
|
|
|
BMapInspector::Reporter reporter;
|
2026-01-30 20:23:39 +08:00
|
|
|
|
2026-01-30 20:40:21 +08:00
|
|
|
// Get rule collection
|
|
|
|
|
BMapInspector::Ruleset::RuleCollection rule_collection;
|
|
|
|
|
// Show rule infos
|
|
|
|
|
std::cout << strop::printf(u8"Total %" PRIuSIZET " rule(s) are loaded.", rule_collection.GetRuleCount()) << std::endl
|
|
|
|
|
<< u8"Check may take few minutes. Please do not close this console..." << std::endl
|
|
|
|
|
<< std::endl;
|
|
|
|
|
|
|
|
|
|
// Show report conclusion
|
2026-01-30 20:23:39 +08:00
|
|
|
reporter.PrintConclusion();
|
2026-01-30 20:40:21 +08:00
|
|
|
// Print report in detail
|
|
|
|
|
reporter.PrintReport();
|
2026-01-30 20:23:39 +08:00
|
|
|
|
2026-01-30 15:23:01 +08:00
|
|
|
return 0;
|
|
|
|
|
}
|