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

Function writeat_cmd_handler

ACE/engine/src/cheat_cmd_handler.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182
183template <typename T>
184void writeat_cmd_handler(proc_rw<T> *process_rw, ADDR address, T val_to_write) {
185
186 // reset errno
187 errno = 0;
188 // write
189 ssize_t ret_val = process_rw->write_val((byte *)address, (T)val_to_write);
190
191 if (errno != 0 && ret_val == -1) {
192 frontend_print("Error while writting at %p: %s\n", (byte *)address,
193 strerror(errno));
194 return;
195 }
196}
197template <typename T>
198void update_cmd_handler(ACE_scanner<T> *scanner,
199 const cheat_mode_config *cheat_config) {

Callers

nothing calls this directly

Calls 2

frontend_printFunction · 0.85
write_valMethod · 0.80

Tested by

no test coverage detected