From: Hugo Villeneuve Date: Thu, 24 Oct 2013 03:32:00 +0000 (-0400) Subject: Do not reset emulator on file load (no ram clear) X-Git-Tag: v2.0.0~109 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=83d7d5ddbea0460029314ef84bbfdb0f59fed07f;p=emu8051.git Do not reset emulator on file load (no ram clear) Reset only when loading first file at application startup. --- diff --git a/src/emugtk.c b/src/emugtk.c index 9ade2cd..06741ff 100644 --- a/src/emugtk.c +++ b/src/emugtk.c @@ -471,7 +471,9 @@ emugtk_new_file(char *file) LoadHexFile(file); - emugtk_Reset(); /* Use app-config->clear_ram_on_file_load */ + if (cfg->clear_ram_on_file_load) + emugtk_Reset(); + emugtk_UpdateDisplay(); } @@ -489,8 +491,8 @@ main(int argc, char **argv) if (options.filename != NULL) LoadHexFile(options.filename); - else - cpu8051_Reset(); + + cpu8051_Reset(); while (restart_gui == true) { log_info("Init GUI");