diff options
Diffstat (limited to 'project/src/ui/ui-wlect.c')
| -rw-r--r-- | project/src/ui/ui-wlect.c | 116 |
1 files changed, 64 insertions, 52 deletions
diff --git a/project/src/ui/ui-wlect.c b/project/src/ui/ui-wlect.c index d2370c8..bac603a 100644 --- a/project/src/ui/ui-wlect.c +++ b/project/src/ui/ui-wlect.c @@ -536,6 +536,13 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = " source for this." }, + { OPT_LOAD_CATEGORY, false, false, false, false, false, 0, "load-category", + "file", + "Read in a CATEGORY file and replace the internal category database" + " with the content. https://ct.wiimm.de/export/category is the" + " authoritative source for this." + }, + { OPT_CHDIR, false, false, false, false, false, 0, "chdir", "dir", "Set a new working directory for all following options, for all" @@ -666,7 +673,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] = " helper option." }, - {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 86 + {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 87 }; @@ -864,6 +871,8 @@ static const struct option OptionLong[] = { "lecode", 2, 0, GO_LE_CODE }, { "load-prefix", 1, 0, GO_LOAD_PREFIX }, { "loadprefix", 1, 0, GO_LOAD_PREFIX }, + { "load-category", 1, 0, GO_LOAD_CATEGORY }, + { "loadcategory", 1, 0, GO_LOAD_CATEGORY }, { "plus", 1, 0, GO_PLUS }, { "chdir", 1, 0, GO_CHDIR }, { "const", 1, 0, 'c' }, @@ -1041,54 +1050,55 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] = /* 0x08b */ OPT_CT_CODE, /* 0x08c */ OPT_LE_CODE, /* 0x08d */ OPT_LOAD_PREFIX, - /* 0x08e */ OPT_PLUS, - /* 0x08f */ OPT_CHDIR, - /* 0x090 */ OPT_ROUND, - /* 0x091 */ OPT_NO_ECHO, - /* 0x092 */ OPT_UTF_8, - /* 0x093 */ OPT_NO_UTF_8, - /* 0x094 */ OPT_LT_CLEAR, - /* 0x095 */ OPT_LT_ONLINE, - /* 0x096 */ OPT_LT_N_PLAYERS, - /* 0x097 */ OPT_LT_COND_BIT, - /* 0x098 */ OPT_LT_GAME_MODE, - /* 0x099 */ OPT_LT_ENGINE, - /* 0x09a */ OPT_LT_RANDOM, - /* 0x09b */ OPT_LEX_PURGE, - /* 0x09c */ OPT_LEX_RM_FEAT, - /* 0x09d */ OPT_FORCE, - /* 0x09e */ OPT_REPAIR_MAGICS, - /* 0x09f */ OPT_CREATE_DISTRIB, - /* 0x0a0 */ OPT_OLD, - /* 0x0a1 */ OPT_STD, - /* 0x0a2 */ OPT_NEW, - /* 0x0a3 */ OPT_EXTRACT, - /* 0x0a4 */ OPT_LE_DEFINE, - /* 0x0a5 */ OPT_LE_ARENA, - /* 0x0a6 */ OPT_LPAR, - /* 0x0a7 */ OPT_ALIAS, - /* 0x0a8 */ OPT_ENGINE, - /* 0x0a9 */ OPT_200CC, - /* 0x0aa */ OPT_PERFMON, - /* 0x0ab */ OPT_CUSTOM_TT, - /* 0x0ac */ OPT_XPFLAGS, - /* 0x0ad */ OPT_SPEEDOMETER, - /* 0x0ae */ OPT_DEBUG, - /* 0x0af */ OPT_TRACK_DIR, - /* 0x0b0 */ OPT_COPY_TRACKS, - /* 0x0b1 */ OPT_MOVE_TRACKS, - /* 0x0b2 */ OPT_MOVE1_TRACKS, - /* 0x0b3 */ OPT_LINK_TRACKS, - /* 0x0b4 */ OPT_SZS_MODE, - /* 0x0b5 */ OPT_LOAD_BMG, - /* 0x0b6 */ OPT_PATCH_BMG, - /* 0x0b7 */ OPT_MACRO_BMG, - /* 0x0b8 */ OPT_PATCH_NAMES, - /* 0x0b9 */ OPT_ORDER_BY, - /* 0x0ba */ OPT_ORDER_ALL, - /* 0x0bb */ OPT_NUMBER, - /* 0x0bc */ OPT_SECTIONS, - /* 0x0bd */ 0,0,0, + /* 0x08e */ OPT_LOAD_CATEGORY, + /* 0x08f */ OPT_PLUS, + /* 0x090 */ OPT_CHDIR, + /* 0x091 */ OPT_ROUND, + /* 0x092 */ OPT_NO_ECHO, + /* 0x093 */ OPT_UTF_8, + /* 0x094 */ OPT_NO_UTF_8, + /* 0x095 */ OPT_LT_CLEAR, + /* 0x096 */ OPT_LT_ONLINE, + /* 0x097 */ OPT_LT_N_PLAYERS, + /* 0x098 */ OPT_LT_COND_BIT, + /* 0x099 */ OPT_LT_GAME_MODE, + /* 0x09a */ OPT_LT_ENGINE, + /* 0x09b */ OPT_LT_RANDOM, + /* 0x09c */ OPT_LEX_PURGE, + /* 0x09d */ OPT_LEX_RM_FEAT, + /* 0x09e */ OPT_FORCE, + /* 0x09f */ OPT_REPAIR_MAGICS, + /* 0x0a0 */ OPT_CREATE_DISTRIB, + /* 0x0a1 */ OPT_OLD, + /* 0x0a2 */ OPT_STD, + /* 0x0a3 */ OPT_NEW, + /* 0x0a4 */ OPT_EXTRACT, + /* 0x0a5 */ OPT_LE_DEFINE, + /* 0x0a6 */ OPT_LE_ARENA, + /* 0x0a7 */ OPT_LPAR, + /* 0x0a8 */ OPT_ALIAS, + /* 0x0a9 */ OPT_ENGINE, + /* 0x0aa */ OPT_200CC, + /* 0x0ab */ OPT_PERFMON, + /* 0x0ac */ OPT_CUSTOM_TT, + /* 0x0ad */ OPT_XPFLAGS, + /* 0x0ae */ OPT_SPEEDOMETER, + /* 0x0af */ OPT_DEBUG, + /* 0x0b0 */ OPT_TRACK_DIR, + /* 0x0b1 */ OPT_COPY_TRACKS, + /* 0x0b2 */ OPT_MOVE_TRACKS, + /* 0x0b3 */ OPT_MOVE1_TRACKS, + /* 0x0b4 */ OPT_LINK_TRACKS, + /* 0x0b5 */ OPT_SZS_MODE, + /* 0x0b6 */ OPT_LOAD_BMG, + /* 0x0b7 */ OPT_PATCH_BMG, + /* 0x0b8 */ OPT_MACRO_BMG, + /* 0x0b9 */ OPT_PATCH_NAMES, + /* 0x0ba */ OPT_ORDER_BY, + /* 0x0bb */ OPT_ORDER_ALL, + /* 0x0bc */ OPT_NUMBER, + /* 0x0bd */ OPT_SECTIONS, + /* 0x0be */ 0,0, /* 0x0c0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, /* 0x0d0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, /* 0x0e0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, @@ -1295,6 +1305,7 @@ static const InfoOption_t * option_tab_tool[] = OptionInfo + OPT_CT_CODE, OptionInfo + OPT_LE_CODE, OptionInfo + OPT_LOAD_PREFIX, + OptionInfo + OPT_LOAD_CATEGORY, OptionInfo + OPT_CHDIR, OptionInfo + OPT_CONST, OptionInfo + OPT_MAX_FILE_SIZE, @@ -1636,6 +1647,7 @@ static const InfoOption_t * option_tab_cmd_CREATE[] = static const InfoOption_t * option_tab_cmd_DISTRIBUTION[] = { OptionInfo + OPT_LOAD_PREFIX, + OptionInfo + OPT_LOAD_CATEGORY, OptionInfo + OPT_PLUS, OptionInfo + OPT_TRACK_DIR, OptionInfo + OPT_COPY_TRACKS, @@ -1737,7 +1749,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] = "wlect [option]... command [option|parameter|file]...", "Wiimms LE-CODE Tool : Manage the LE-CODE and LEX extensions.", 0, - 33, + 34, option_tab_tool, 0 }, @@ -2062,7 +2074,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] = " b:body, p:parameters, d:data, c:code and a:all. In plus-mode, a test" " is enabled, in minus-mode it is disabled. Scanning starts in" " plus-mode.\n" - " Example: a-t: compare all except timestamps.\n" + " Example: a-t: compare all except timestamps and edit infos.\n" " The exist status is OK (0) if nothing differ, DIFFER (2) if at" " least one test failed, or an error code.", 0, @@ -2134,7 +2146,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] = " This command is still under development. Its use is therefore" " EXPERIMENTAL!", 0, - 20, + 21, option_tab_cmd_DISTRIBUTION, option_allowed_cmd_DISTRIBUTION }, |
