X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fapp-config.c;h=90022f24c4c338a930a18a56bb41cedcedb5855b;hb=82819ebb72819f4a39c5a9aa95fbb2cef22d510f;hp=ba9a18a1dba8085a69e1e7b4c4e85da4e601eb7e;hpb=ca2a000a22e5b5121a61833198966f001aa2a77f;p=emu8051.git diff --git a/src/app-config.c b/src/app-config.c index ba9a18a..90022f2 100644 --- a/src/app-config.c +++ b/src/app-config.c @@ -60,6 +60,7 @@ app_config_init(void) /* View menu options */ cfg->layout = UI_LAYOUT1; cfg->view_int_memory = 1; + cfg->view_sfr_memory = 1; cfg->view_ext_memory = 1; cfg->bits_per_row = 16; /* 8 or 16 */ } @@ -98,11 +99,13 @@ app_config_load_from_key_file(GKeyFile *kf) /* View */ app_config_key_file_get_int(kf, "view", "layout", &cfg->layout); if ((cfg->layout != UI_LAYOUT1) && (cfg->layout != UI_LAYOUT2)) { - log_fail_no_exit("Invalid layout, defaulting to layout 1"); + log_err("Invalid layout, defaulting to layout 1"); cfg->layout = UI_LAYOUT1; } app_config_key_file_get_int(kf, "view", "int_memory", &cfg->view_int_memory); + app_config_key_file_get_int(kf, "view", "sfr_memory", + &cfg->view_sfr_memory); app_config_key_file_get_int(kf, "view", "ext_memory", &cfg->view_ext_memory); app_config_key_file_get_int(kf, "view", "bits_per_row", @@ -194,6 +197,8 @@ app_config_save(void) g_string_append_printf(buf, "layout=%d\n", cfg->layout); g_string_append_printf(buf, "int_memory=%d\n", cfg->view_int_memory); + g_string_append_printf(buf, "sfr_memory=%d\n", + cfg->view_sfr_memory); g_string_append_printf(buf, "ext_memory=%d\n", cfg->view_ext_memory); g_string_append_printf(buf, "bits_per_row=%d\n",