From 83d7d5ddbea0460029314ef84bbfdb0f59fed07f Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 23 Oct 2013 23:32:00 -0400 Subject: [PATCH] Do not reset emulator on file load (no ram clear) Reset only when loading first file at application startup. --- src/emugtk.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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"); -- 2.20.1