1
0

refactor: fix BMap build issue.

- fix BMap build issue with new YYCC.
- rename most "General" into "Generic".
- remove useless code.
This commit is contained in:
2026-01-30 14:38:03 +08:00
parent 333ff0ab17
commit 2b9c0296d1
7 changed files with 42 additions and 63 deletions

View File

@@ -114,33 +114,6 @@ namespace Unvirt::StructFmt {
std::cout << strop::printf(u8"Page %" PRIuSIZET " of %" PRIuSIZET, page + 1, pager.GetMaxPage() + 1) << std::endl;
}
//template<class T>
//static void GeneralPrintList(
// const std::vector<T>& data, size_t page, size_t pageitems,
// std::function<void()> printHdrFct, std::function<void(size_t, const T&)> printEntryFct) {
// // check page overflow
// if (page * pageitems >= data.size()) {
// console::write_line(YYCC_COLOR_LIGHT_RED(u8"Page out of range."));
// return;
// }
// // calc page data
// size_t fulllen = data.size(),
// startpos = page * pageitems,
// fullpage = (fulllen + (pageitems - 1)) / pageitems; // to solve `fulllen / pageitems` empty page issue. like CKStateChunk::GetCeilDwordSize function (+3 /4 to get DWORD size).
// // print header
// printHdrFct();
// // print body
// for (size_t counter = startpos; counter < fulllen && (counter - startpos) < pageitems; ++counter) {
// printEntryFct(counter, data[counter]);
// }
// console::format_line(u8"Page %" PRIuSIZET " of %" PRIuSIZET, page + 1, fullpage);
//}
#pragma endregion
#pragma region Object Printer