follow-up - Change the terminology in mO menu
This commit is contained in:
+2
-2
@@ -21,7 +21,7 @@ enum OptSection {
|
|||||||
OptS_General, OptS_Behavior, OptS_Map, OptS_Status, OptS_Advanced
|
OptS_General, OptS_Behavior, OptS_Map, OptS_Status, OptS_Advanced
|
||||||
};
|
};
|
||||||
enum menu_terminology_preference {
|
enum menu_terminology_preference {
|
||||||
Term_False, Term_Off, Term_Disabled, num_terms
|
Term_False, Term_Off, Term_Disabled, Term_Excluded, num_terms
|
||||||
};
|
};
|
||||||
|
|
||||||
struct allopt_t {
|
struct allopt_t {
|
||||||
@@ -667,7 +667,7 @@ static int optfn_##a(int, int, boolean, char *, char *);
|
|||||||
Off, Yes, No, No, NoAlias, &iflags.voices, Term_Off)
|
Off, Yes, No, No, NoAlias, &iflags.voices, Term_Off)
|
||||||
#else
|
#else
|
||||||
NHOPTB(voices, Advanced, 0, opt_in, set_gameview,
|
NHOPTB(voices, Advanced, 0, opt_in, set_gameview,
|
||||||
Off, Yes, No, No, NoAlias, &iflags.voices, Term_Disabled)
|
Off, Yes, No, No, NoAlias, &iflags.voices, Term_Excluded)
|
||||||
#endif
|
#endif
|
||||||
#ifdef TTY_TILES_ESCCODES
|
#ifdef TTY_TILES_ESCCODES
|
||||||
NHOPTB(vt_tiledata, Advanced, 0, opt_in, set_in_config,
|
NHOPTB(vt_tiledata, Advanced, 0, opt_in, set_in_config,
|
||||||
|
|||||||
+3
-3
@@ -8572,13 +8572,13 @@ term_for_boolean(int idx, boolean *b)
|
|||||||
int i, f_t = (*b) ? 1: 0;
|
int i, f_t = (*b) ? 1: 0;
|
||||||
const char *boolean_term;
|
const char *boolean_term;
|
||||||
static const char *const booleanterms[2][num_terms] = {
|
static const char *const booleanterms[2][num_terms] = {
|
||||||
{ "false", "off", "disabled", },
|
{ "false", "off", "disabled", "excluded from build" },
|
||||||
{ "true", "on", "enabled", },
|
{ "true", "on", "enabled", "included"},
|
||||||
};
|
};
|
||||||
|
|
||||||
boolean_term = booleanterms[f_t][0];
|
boolean_term = booleanterms[f_t][0];
|
||||||
i = (int) allopt[idx].termpref;
|
i = (int) allopt[idx].termpref;
|
||||||
if (i > Term_False && i < num_terms)
|
if (i > Term_False && i < num_terms && i < SIZE(booleanterms[0]))
|
||||||
boolean_term = booleanterms[f_t][i];
|
boolean_term = booleanterms[f_t][i];
|
||||||
return boolean_term;
|
return boolean_term;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user