diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/opt.h | 3 | ||||
-rw-r--r-- | src/rccconfig.c | 17 |
2 files changed, 12 insertions, 8 deletions
@@ -11,7 +11,8 @@ enum rcc_option_type_t { RCC_OPTION_TYPE_BOOLEAN = 0, RCC_OPTION_TYPE_RANGE, RCC_OPTION_TYPE_FLAGS, - RCC_OPTION_TYPE_MENU + RCC_OPTION_TYPE_MENU, + RCC_OPTION_TYPE_MAX }; typedef enum rcc_option_type_t rcc_option_type; diff --git a/src/rccconfig.c b/src/rccconfig.c index d40941f..10ddf3f 100644 --- a/src/rccconfig.c +++ b/src/rccconfig.c @@ -117,16 +117,19 @@ rcc_language_name rcc_default_language_names[RCC_MAX_LANGUAGES+1] = { }; rcc_option_description rcc_default_option_descriptions[] = { - {RCC_LEARNING_MODE, "LEARNING_MODE", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, + {RCC_LEARNING_MODE, "LEARNING_MODE", RCC_OPTION_TYPE_MENU, 0, 3}, + {RCC_AUTODETECT_FS_NAMES, "AUTODETECT_FS_NAMES", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_BOOLEAN, 0, 0}, - {RCC_AUTODETECT_FS_NAMES, "AUTODETECT_FS_NAMES", RCC_OPTION_TYPE_NAMES; - {RCC_AUTODETECT_FS_TITLES, "AUTODETECT_FS_TITLES", RCC_OPTION_TYPE_NAMES; - RCC_CONFIGURED_LANGUAGES_ONLY + {RCC_CONFIGURED_LANGUAGES_ONLY, "CONFIGURED_LANGUAGES_ONLY", RCC_OPTION_MENU, 0, 2}, + {RCC_MAX_OPTIONS, NULL} +}; + rcc_option_name rcc_default_option_names[] = { - { RCC_LEARNING_MODE, "Learning Mode", "LEARNING_MODE" }, - { RCC_AUTODETECT_FS_TITLES, "Autodetect FS Encoding", "AUTODETECT_FS_TITLES" }, - { RCC_AUTODETECT_FS_NAMES, "Autodetect File Names", "AUTODETECT_FS_NAMES" }, + { RCC_LEARNING_MODE, "Learning Mode", }, + { RCC_AUTODETECT_FS_NAMES, "Autodetect File Names", NULL}, + { RCC_AUTODETECT_FS_TITLES, NULL, NULL}, + { RCC_CONFIGURED_LANGUAGES_ONLY, NULL, NULL}, { RCC_MAX_OPTIONS, NULL, NULL} }; |