MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / memSyncEdit

Method memSyncEdit

gui/qt/memorywidget.cpp:229–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229void MainWindow::memSyncEdit(HexWidget *edit) {
230 if (edit == Q_NULLPTR) {
231 return;
232 }
233
234 int base = edit->getBase();
235 int count = edit->modifiedCount();
236 for (int i = 0; count && i < edit->getSize(); i++) {
237 if (edit->modified()[i]) {
238 mem_poke_byte(static_cast<uint32_t>(base + i), edit->data()[i]);
239 count--;
240 }
241 qApp->processEvents();
242 }
243
244 memSync(edit);
245}
246
247void MainWindow::memAsciiToggle(HexWidget *edit) {
248 if (edit == Q_NULLPTR) {

Callers

nothing calls this directly

Calls 6

mem_poke_byteFunction · 0.85
getBaseMethod · 0.80
modifiedCountMethod · 0.80
getSizeMethod · 0.80
modifiedMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected