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

Function readat_cmd_handler

ACE/engine/src/cheat_cmd_handler.cpp:140–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138
139template <typename T>
140void readat_cmd_handler(proc_rw<T> *process_rw, ADDR address) {
141
142 // reset errno
143 errno = 0;
144 // read
145 T read_val = process_rw->retrieve_val((byte *)address);
146
147 if (errno != 0)
148 frontend_print("error while reading: %s\n", strerror(errno));
149 else
150 frontend_print("%s\n", std::to_string(read_val).c_str());
151}
152
153template <typename T>
154void read_arr_cmd_handler(proc_rw<T> *process_rw, ADDR address,

Callers

nothing calls this directly

Calls 2

frontend_printFunction · 0.85
retrieve_valMethod · 0.45

Tested by

no test coverage detected