From a0bb1e0b5cdab3f70842c5e50f93ad614f0c4968 Mon Sep 17 00:00:00 2001 From: Volker Ruppert Date: Sun, 31 Aug 2003 08:34:29 +0000 Subject: [PATCH] - bx_list_c::text_print() now uses a comma and a space as the parameter separator if the flag SERIES_ASK is set - bx_param_enum_c::text_print(): use the value already stored in variable 'choice' --- bochs/gui/textconfig.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bochs/gui/textconfig.cc b/bochs/gui/textconfig.cc index 339a4bf3d..c52162a1d 100644 --- a/bochs/gui/textconfig.cc +++ b/bochs/gui/textconfig.cc @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////// -// $Id: textconfig.cc,v 1.15 2003-08-25 18:36:09 vruppert Exp $ +// $Id: textconfig.cc,v 1.16 2003-08-31 08:34:29 vruppert Exp $ ///////////////////////////////////////////////////////////////////////// // // This is code for a text-mode configuration interfac. Note that this file @@ -749,7 +749,7 @@ bx_param_enum_c::text_print (FILE *fp) fprintf (fp, get_format (), choice); } else { char *format = "%s: %s"; - fprintf (fp, format, get_name (), get_choice (get ())); + fprintf (fp, format, get_name (), choice); } } @@ -797,6 +797,8 @@ bx_list_c::text_print (FILE *fp) //fprintf (fp, "param[%d] = %p\n", i, list[i]); assert (list[i] != NULL); if (list[i]->get_enabled ()) { + if ((i>0) && (options->get () & SERIES_ASK)) + fprintf (fp, ", "); list[i]->text_print (fp); if (!(options->get () & SERIES_ASK)) fprintf (fp, "\n");