MCPcopy Create free account
hub / github.com/KuhakuPixel/AceTheGame / list_cmd_handler

Function list_cmd_handler

ACE/engine/src/cheat_cmd_handler.cpp:23–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22template <typename T>
23void list_cmd_handler(const ACE_scanner<T> *scanner, size_t list_max_count) {
24 const match_storage<T> &scan_res = scanner->get_current_scan_result();
25
26 size_t display_count = std::min(list_max_count, scan_res.get_matches_count());
27
28 scan_res.iterate_val(
29
30 [&](ADDR addr, T val) {
31 T val_display = val;
32 // swap endian again if scan type is swapped
33 // for a good normal (as in the endian is native )display
34 if (scanner->get_endian_scan_type() == E_endian_scan_type::swapped)
35 val_display = swap_endian<T>(val);
36 //
37
38 frontend_print("0x%llx %s\n", addr,
39 std::to_string(val_display).c_str());
40 },
41
42 display_count
43
44 );
45}
46
47template <typename T>
48void matchcount_cmd_handler(const ACE_scanner<T> *scanner) {

Callers

nothing calls this directly

Calls 4

frontend_printFunction · 0.85
get_matches_countMethod · 0.80
iterate_valMethod · 0.80
get_endian_scan_typeMethod · 0.80

Tested by

no test coverage detected