1
0
Files
libcmo21/Ballance/BMapInspector/BMapInspector.cpp

39 lines
1.2 KiB
C++
Raw Normal View History

2026-01-30 20:23:39 +08:00
#include "Utils.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;
int main(int argc, char *argv[]) {
2026-01-30 20:23:39 +08:00
// Show splash
std::cout << termcolor::colored(u8"Ballance Map Inspector", termcolor::Color::LightYellow)
<< " (based on LibCmo " LIBCMO_VER_STR ") built at " __DATE__ " " __TIME__ << std::endl
2026-01-30 20:40:21 +08:00
<< u8"The inspector for checking whether your Ballance custom map can be loaded without any issues." << std::endl
<< std::endl;
2026-01-30 20:23:39 +08:00
// Create reporter
BMapInspector::Utils::Reporter reporter;
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
return 0;
}