aboutsummaryrefslogtreecommitdiff
path: root/project/src/ui
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/src/ui/gen-ui.c9
-rw-r--r--project/src/ui/tab-wbmgt.inc15
-rw-r--r--project/src/ui/tab-wctct.inc15
-rw-r--r--project/src/ui/tab-wimgt.inc15
-rw-r--r--project/src/ui/tab-wkclt.inc15
-rw-r--r--project/src/ui/tab-wkmpt.inc15
-rw-r--r--project/src/ui/tab-wlect.inc51
-rw-r--r--project/src/ui/tab-wmdlt.inc15
-rw-r--r--project/src/ui/tab-wpatt.inc15
-rw-r--r--project/src/ui/tab-wstrt.inc15
-rw-r--r--project/src/ui/tab-wszst.inc49
-rw-r--r--project/src/ui/ui-wbmgt.c164
-rw-r--r--project/src/ui/ui-wbmgt.h9
-rw-r--r--project/src/ui/ui-wctct.c200
-rw-r--r--project/src/ui/ui-wctct.h9
-rw-r--r--project/src/ui/ui-wimgt.c137
-rw-r--r--project/src/ui/ui-wimgt.h9
-rw-r--r--project/src/ui/ui-wkclt.c199
-rw-r--r--project/src/ui/ui-wkclt.h9
-rw-r--r--project/src/ui/ui-wkmpt.c236
-rw-r--r--project/src/ui/ui-wkmpt.h9
-rw-r--r--project/src/ui/ui-wlect.c350
-rw-r--r--project/src/ui/ui-wlect.h30
-rw-r--r--project/src/ui/ui-wmdlt.c168
-rw-r--r--project/src/ui/ui-wmdlt.h9
-rw-r--r--project/src/ui/ui-wpatt.c127
-rw-r--r--project/src/ui/ui-wpatt.h9
-rw-r--r--project/src/ui/ui-wstrt.c269
-rw-r--r--project/src/ui/ui-wstrt.h9
-rw-r--r--project/src/ui/ui-wszst.c943
-rw-r--r--project/src/ui/ui-wszst.h19
-rw-r--r--project/src/ui/ui.def340
32 files changed, 2282 insertions, 1201 deletions
diff --git a/project/src/ui/gen-ui.c b/project/src/ui/gen-ui.c
index d8518ce..3e072cf 100644
--- a/project/src/ui/gen-ui.c
+++ b/project/src/ui/gen-ui.c
@@ -75,6 +75,11 @@ bool DefineIntVar ( VarMap_t * vm, ccp varname, int value ) { return false; }
#define ARCHIVES_AND "SZS, U8, PACK, BRRES, BREFF, BREFT and RARC"
#define ARCHIVES_COMMA "SZS, U8, PACK, BRRES, BREFF, BREFT, RARC"
+// create archives
+#define CARCHIVES_OR "SZS, U8, PACK, BRRES, BREFF or BREFT"
+#define CARCHIVES_AND "SZS, U8, PACK, BRRES, BREFF and BREFT"
+#define CARCHIVES_COMMA "SZS, U8, PACK, BRRES, BREFT"
+
#define MAX_GAMEMODES "1573"
#define NO_HEAD_SYNTAX "Suppress the syntax information section in decoded text files."
@@ -145,6 +150,10 @@ bool DefineIntVar ( VarMap_t * vm, ccp varname, int value ) { return false; }
#define DEPRECATED "[DEPRECATED] "
+#define CONFIG_CMD \
+ "Show all information about the search" \
+ " for the configuration file and its content."
+
//
///////////////////////////////////////////////////////////////////////////////
/////////////// the info table ///////////////
diff --git a/project/src/ui/tab-wbmgt.inc b/project/src/ui/tab-wbmgt.inc
index 7f63fde..86cb2c7 100644
--- a/project/src/ui/tab-wbmgt.inc
+++ b/project/src/ui/tab-wbmgt.inc
@@ -59,6 +59,10 @@
"wbmgt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wbmgt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wbmgt ARGTEST ...",
0 /* copy of wszst */ },
@@ -191,6 +195,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -450,6 +457,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wbmgt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wbmgt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wctct.inc b/project/src/ui/tab-wctct.inc
index 9d4bbdf..b4f72bc 100644
--- a/project/src/ui/tab-wctct.inc
+++ b/project/src/ui/tab-wctct.inc
@@ -60,6 +60,10 @@
"wctct HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wctct CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wctct ARGTEST ...",
0 /* copy of wszst */ },
@@ -178,6 +182,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -568,6 +575,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wctct CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wctct ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wimgt.inc b/project/src/ui/tab-wimgt.inc
index 6198c13..c41c210 100644
--- a/project/src/ui/tab-wimgt.inc
+++ b/project/src/ui/tab-wimgt.inc
@@ -60,6 +60,10 @@
"wimgt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wimgt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wimgt ARGTEST ...",
0 /* copy of wszst */ },
@@ -148,6 +152,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -398,6 +405,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wimgt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wimgt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wkclt.inc b/project/src/ui/tab-wkclt.inc
index 931b061..9842709 100644
--- a/project/src/ui/tab-wkclt.inc
+++ b/project/src/ui/tab-wkclt.inc
@@ -59,6 +59,10 @@
"wkclt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wkclt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wkclt ARGTEST ...",
0 /* copy of wszst */ },
@@ -245,6 +249,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -539,6 +546,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wkclt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wkclt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wkmpt.inc b/project/src/ui/tab-wkmpt.inc
index 686b547..8fce206 100644
--- a/project/src/ui/tab-wkmpt.inc
+++ b/project/src/ui/tab-wkmpt.inc
@@ -59,6 +59,10 @@
"wkmpt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wkmpt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wkmpt ARGTEST ...",
0 /* copy of wszst */ },
@@ -245,6 +249,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -664,6 +671,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wkmpt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wkmpt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wlect.inc b/project/src/ui/tab-wlect.inc
index e107ced..ae427ea 100644
--- a/project/src/ui/tab-wlect.inc
+++ b/project/src/ui/tab-wlect.inc
@@ -59,6 +59,10 @@
"wlect HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wlect CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wlect ARGTEST ...",
0 /* copy of wszst */ },
@@ -108,6 +112,10 @@
"This hidden command exports some definitions to standard output."
" Use keyword @HELP@ to get a list of possible keywords." },
+ { H_DEF_CMD, "DPAD", "_DPAD",
+ "wszst DPAD number_or_code...",
+ "This hidden command decodes and encodes D-Pad suquences for LE-CODE." },
+
{ T_SEP_CMD, 0,0,0,0 }, //----- separator -----
{ T_DEF_CMD, "DUMP", "DUMP|D",
@@ -197,6 +205,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -470,24 +481,14 @@
"[=mode]",
"Enable or disable the speedometer."
" Mode is one of @OFF@, @AUTO@ (default, don't change setting),"
- " @ON@ (enable it for Wii and WiiU only;"
- " default, if option is used without parameter)"
- " or @FORCE@ (enable it for Wii, Wii U and for Dolphin)." },
-
- { H_OPT_CP, "RESERVED_1B9", "reserved-1b9|reserved1b9",
- "[=mode]",
- "Set LPAR byte at offset 0x1b9 to this value."
- " Value -1 disables this option." },
-
- { H_OPT_CP, "RESERVED_1BA", "reserved-1ba|reserved1ba",
- "[=mode]",
- "Set LPAR byte at offset 0x1ba to this value."
- " Value -1 disables this option." },
+ " @ON@ (default, if option is used without parameter)"
+ " or @FRACTION@ (=@1DIGIT@), @2DIGITS@ and @3DIGITS@." },
- { H_OPT_CP, "RESERVED_1BB", "reserved-1bb|reserved1bb",
- "[=mode]",
- "Set LPAR byte at offset 0x1bb to this value."
- " Value -1 disables this option." },
+ { T_OPT_CP, "DEBUG", "debug",
+ "mode",
+ "Enable or disable the debug output while racing."
+ " Mode is one of @OFF@, @AUTO@ (default, don't change setting),"
+ " @USER@ or @100@ to @199@ for predefined setups." },
{ T_SEP_OPT, 0,0,0,0 }, //----- separator -----
@@ -629,9 +630,7 @@
{ T_COPT, "CUSTOM_TT", 0,0,0 },
{ T_COPT, "XPFLAGS", 0,0,0 },
{ T_COPT, "SPEEDOMETER", 0,0,0 },
- { H_COPT, "RESERVED_1B9", 0,0,0 },
- { H_COPT, "RESERVED_1BA", 0,0,0 },
- { H_COPT, "RESERVED_1BB", 0,0,0 },
+ { T_COPT, "DEBUG", 0,0,0 },
//---------- wlect GROUP PATCH ----------
@@ -701,6 +700,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wlect CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wlect ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
@@ -781,6 +788,10 @@
{ T_CMD_BEG, "EXPORT", 0,0,0 },
+ //---------- COMMAND wlect _DPAD ----------
+
+ { T_CMD_BEG, "DPAD", 0,0,0 },
+
//---------- COMMAND wlect DUMP ----------
{ T_CMD_BEG, "DUMP", 0,0,0 },
diff --git a/project/src/ui/tab-wmdlt.inc b/project/src/ui/tab-wmdlt.inc
index d68652a..d95afd1 100644
--- a/project/src/ui/tab-wmdlt.inc
+++ b/project/src/ui/tab-wmdlt.inc
@@ -59,6 +59,10 @@
"wmdlt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wmdlt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wmdlt ARGTEST ...",
0 /* copy of wszst */ },
@@ -171,6 +175,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -436,6 +443,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wmdlt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wmdlt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wpatt.inc b/project/src/ui/tab-wpatt.inc
index fc86f58..e8b2693 100644
--- a/project/src/ui/tab-wpatt.inc
+++ b/project/src/ui/tab-wpatt.inc
@@ -59,6 +59,10 @@
"wpatt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wpatt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wpatt ARGTEST ...",
0 /* copy of wszst */ },
@@ -139,6 +143,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0, 0 /* copy of wszst */ },
@@ -334,6 +341,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wpatt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wpatt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wstrt.inc b/project/src/ui/tab-wstrt.inc
index 19ecfa3..291c635 100644
--- a/project/src/ui/tab-wstrt.inc
+++ b/project/src/ui/tab-wstrt.inc
@@ -60,6 +60,10 @@
"wstrt HELP [--width=wd] [ignored]...",
0 /* copy of wszst */ },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wstrt CONFIG [options]...",
+ CONFIG_CMD },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wstrt ARGTEST ...",
0 /* copy of wszst */ },
@@ -179,6 +183,9 @@
{ T_OPT_S, "XHELP", "xhelp",
0, 0 /* copy of wszst */ },
+ { T_OPT_GP, "CONFIG", "config",
+ 0, 0 /* copy of wszst */ },
+
{ H_OPT_G, "AT_DUMMY", "@|@", 0, "" },
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
@@ -860,6 +867,14 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wstrt CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too." },
+
//---------- COMMAND wstrt ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/tab-wszst.inc b/project/src/ui/tab-wszst.inc
index e9e511c..c36da8c 100644
--- a/project/src/ui/tab-wszst.inc
+++ b/project/src/ui/tab-wszst.inc
@@ -44,7 +44,8 @@
"wszst [option]... command [option|parameter|@file]...",
WSZST_LONG " :"
" List, compare, (de-)compress, extract and create"
- " " ARCHIVES_AND " archives."
+ " " CARCHIVES_AND " archives."
+ " Additonally, RARC archive can be extracted."
" It is also a wrapper to all other tools." },
//
@@ -74,6 +75,12 @@
" The fourth variant prints an overview about all commands"
" and all global options." },
+ { T_DEF_CMD, "CONFIG", "CONFIG",
+ "wszst CONFIG [options]...",
+ CONFIG_CMD
+ " The command can also export the settings for scripts"
+ " or can create or update configuration files." },
+
{ T_DEF_CMD, "ARGTEST", "ARGTEST",
"wszst ARGTEST ...",
"This debug command accepts all kinds of parameters"
@@ -488,7 +495,7 @@
{ T_DEF_CMD, "CREATE", "CREATE|C",
"wszst CREATE [source_dir]...",
- "Create " ARCHIVES_OR " archives by adding all not hidden files"
+ "Create " CARCHIVES_OR " archives by adding all not hidden files"
" of the directory structure."
" Create and/or encode sub files if necessary."
" The default destination is @'%P/%N%T'@." },
@@ -598,7 +605,7 @@
{ T_DEF_CMD, "YAZDUMP", "YAZDUMP|YD",
"wszst YAZDUMP [szs]...",
- "Analyze YAZ compression print a dump to stdout."
+ "Analyze YAZ compression and print a dump to stdout."
" Ignore files without YAZ compression." },
{ T_SEP_CMD, 0,0,0,0 }, //----- separator -----
@@ -623,6 +630,15 @@
"Stop parsing the command line and print a help message"
" with all commands included. Exit after printing." },
+ { T_OPT_GP, "CONFIG", "config",
+ "file",
+ "Define a configuration file or a directory as source."
+ " In later case, file @'" CONFIG_FILE "'@ is searched."
+ "\n "
+ " If option is not not set,"
+ " then file @'" CONFIG_FILE "'@ is searched in different directories."
+ " Use command @'wszst CONFIG'@ to get more details." },
+
{ T_OPT_G, "ALLOW_ALL", "allow-all|allowall",
0,
"Usually commands accept only options with impact to the command."
@@ -1696,7 +1712,7 @@
"Define an alternative directory as autoadd library."
" The default is, that the sub-directory called './auto-add/'"
" of all search paths are used."
- " Use {wszst test -vvvv} for tests." },
+ " Use {wszst config -ll} for tests." },
{ T_SEP_OPT, 0,0,0,0 }, //----- separator -----
@@ -1836,7 +1852,7 @@
{ T_OPT_GP, "VAR", "var",
"varname",
"Use @VARNAME@ as variable name or prefix on script output."
- " The default variabe name is 'res'." },
+ " The default value is 'res' for variables and 'res_' as prefix." },
{ T_OPT_G, "ARRAY", "array",
0,
@@ -1874,6 +1890,10 @@
" a second condition. In this case the feature is excluded"
" from printing if *any* set keywords match." },
+ { T_OPT_C, "INSTALL", "install",
+ 0,
+ "Manage configuration for an installation." },
+
{ T_SEP_OPT, 0,0,0,0 }, //----- separator -----
{ H_OPT_CP, "ANALYZE", "analyze|analyse",
@@ -2431,6 +2451,9 @@
{ T_GRP_BEG, "SCRIPT", 0,0,0 },
+ { T_COPT, "SECTIONS", 0,0,
+ "Dump info using configuration or section syntax."
+ " Use {--var name} as prefix." },
{ T_COPT, "SH", 0,0,0 },
{ T_COPT, "BASH", 0,0,0 },
{ T_COPT, "JSON", 0,0,0 },
@@ -2577,6 +2600,22 @@
{ T_COPT, "MAX_WIDTH", 0,0,0 },
{ T_ALL_OPT, 0, 0,0,0 },
+ //---------- COMMAND wszst CONFIG ----------
+
+ { T_CMD_BEG, "CONFIG", 0,0,0 },
+
+ { T_COPT, "CONFIG", 0,0,0 },
+ { T_COPT, "INSTALL", 0,0,0 },
+ { T_COPT, "AUTOADD_PATH", 0,0,0 },
+ { T_COPT, "LONG", 0,0,
+ "If set, print the search list too."
+ " If set twice, print the auto-add search list too."
+ " This option is ignored, if any script output is enabled." },
+ { T_SEP_OPT, 0,0,0,0 },
+ { T_COPY_GRP, "SCRIPT", 0,0,0 },
+ { T_COPT, "BRIEF", 0,0,
+ "If printed as sections, exclude all comments." },
+
//---------- COMMAND wszst ARGTEST ----------
{ T_CMD_BEG, "ARGTEST", 0,0,0 },
diff --git a/project/src/ui/ui-wbmgt.c b/project/src/ui/ui-wbmgt.c
index 598864e..1ab1049 100644
--- a/project/src/ui/ui-wbmgt.c
+++ b/project/src/ui/ui-wbmgt.c
@@ -313,6 +313,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -522,7 +531,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 == 62
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 63
};
@@ -544,6 +553,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -607,6 +622,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -644,6 +660,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -800,43 +817,44 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_POINTS,
- /* 0x08c */ OPT_UTF_8,
- /* 0x08d */ OPT_NO_UTF_8,
- /* 0x08e */ OPT_FORCE,
- /* 0x08f */ OPT_REPAIR_MAGICS,
- /* 0x090 */ OPT_OLD,
- /* 0x091 */ OPT_STD,
- /* 0x092 */ OPT_NEW,
- /* 0x093 */ OPT_EXTRACT,
- /* 0x094 */ OPT_NUMBER,
- /* 0x095 */ OPT_ALIGN,
- /* 0x096 */ OPT_MACRO_BMG,
- /* 0x097 */ OPT_FILTER_BMG,
- /* 0x098 */ OPT_BMG_ENDIAN,
- /* 0x099 */ OPT_BMG_ENCODING,
- /* 0x09a */ OPT_BMG_INF_SIZE,
- /* 0x09b */ OPT_BMG_MID,
- /* 0x09c */ OPT_FORCE_ATTRIB,
- /* 0x09d */ OPT_DEF_ATTRIB,
- /* 0x09e */ OPT_NO_ATTRIB,
- /* 0x09f */ OPT_X_ESCAPES,
- /* 0x0a0 */ OPT_OLD_ESCAPES,
- /* 0x0a1 */ OPT_NO_BMG_COLORS,
- /* 0x0a2 */ OPT_BMG_COLORS,
- /* 0x0a3 */ OPT_NO_BMG_INLINE,
- /* 0x0a4 */ OPT_SECTIONS,
- /* 0x0a5 */ 0,0,0,0, 0,0,0,0, 0,0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_POINTS,
+ /* 0x08d */ OPT_UTF_8,
+ /* 0x08e */ OPT_NO_UTF_8,
+ /* 0x08f */ OPT_FORCE,
+ /* 0x090 */ OPT_REPAIR_MAGICS,
+ /* 0x091 */ OPT_OLD,
+ /* 0x092 */ OPT_STD,
+ /* 0x093 */ OPT_NEW,
+ /* 0x094 */ OPT_EXTRACT,
+ /* 0x095 */ OPT_NUMBER,
+ /* 0x096 */ OPT_ALIGN,
+ /* 0x097 */ OPT_MACRO_BMG,
+ /* 0x098 */ OPT_FILTER_BMG,
+ /* 0x099 */ OPT_BMG_ENDIAN,
+ /* 0x09a */ OPT_BMG_ENCODING,
+ /* 0x09b */ OPT_BMG_INF_SIZE,
+ /* 0x09c */ OPT_BMG_MID,
+ /* 0x09d */ OPT_FORCE_ATTRIB,
+ /* 0x09e */ OPT_DEF_ATTRIB,
+ /* 0x09f */ OPT_NO_ATTRIB,
+ /* 0x0a0 */ OPT_X_ESCAPES,
+ /* 0x0a1 */ OPT_OLD_ESCAPES,
+ /* 0x0a2 */ OPT_NO_BMG_COLORS,
+ /* 0x0a3 */ OPT_BMG_COLORS,
+ /* 0x0a4 */ OPT_NO_BMG_INLINE,
+ /* 0x0a5 */ OPT_SECTIONS,
+ /* 0x0a6 */ 0,0,0,0, 0,0,0,0, 0,0,
/* 0x0b0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,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,
@@ -865,115 +883,121 @@ static u8 option_allowed_cmd_HELP[32] = // cmd #2
1,1
};
-static u8 option_allowed_cmd_ARGTEST[32] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[32] = // cmd #3
+{
+ 0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[32] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1
};
-static u8 option_allowed_cmd_TEST[32] = // cmd #4
+static u8 option_allowed_cmd_TEST[32] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1
};
-static u8 option_allowed_cmd_COLORS[32] = // cmd #5
+static u8 option_allowed_cmd_COLORS[32] = // cmd #6
{
0,1,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_ERROR[32] = // cmd #6
+static u8 option_allowed_cmd_ERROR[32] = // cmd #7
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,1
};
-static u8 option_allowed_cmd_FILETYPE[32] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[32] = // cmd #8
{
0,1,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_FILEATTRIB[32] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[32] = // cmd #9
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_POINTS[32] = // cmd #9
+static u8 option_allowed_cmd_POINTS[32] = // cmd #10
{
0,1,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_REGEXP[32] = // cmd #10
+static u8 option_allowed_cmd_REGEXP[32] = // cmd #11
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_EXTRACT[32] = // cmd #11
+static u8 option_allowed_cmd_EXTRACT[32] = // cmd #12
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_SECTIONS[32] = // cmd #12
+static u8 option_allowed_cmd_SECTIONS[32] = // cmd #13
{
0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_LIST[32] = // cmd #13
+static u8 option_allowed_cmd_LIST[32] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_SLOTS[32] = // cmd #14
+static u8 option_allowed_cmd_SLOTS[32] = // cmd #15
{
0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_DIFF[32] = // cmd #15
+static u8 option_allowed_cmd_DIFF[32] = // cmd #16
{
0,0,0,0,1, 0,1,0,0,0, 0,0,0,0,1, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_CAT[32] = // cmd #16
+static u8 option_allowed_cmd_CAT[32] = // cmd #17
{
0,1,1,1,0, 0,0,0,0,0, 0,0,1,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,0
};
-static u8 option_allowed_cmd_MIX[32] = // cmd #17
+static u8 option_allowed_cmd_MIX[32] = // cmd #18
{
0,1,1,1,0, 0,0,0,0,0, 0,0,1,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,0
};
-static u8 option_allowed_cmd_IDENTIFIER[32] = // cmd #18
+static u8 option_allowed_cmd_IDENTIFIER[32] = // cmd #19
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,0
};
-static u8 option_allowed_cmd_DECODE[32] = // cmd #19
+static u8 option_allowed_cmd_DECODE[32] = // cmd #20
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,0
};
-static u8 option_allowed_cmd_ENCODE[32] = // cmd #20
+static u8 option_allowed_cmd_ENCODE[32] = // cmd #21
{
0,0,0,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_PATCH[32] = // cmd #21
+static u8 option_allowed_cmd_PATCH[32] = // cmd #22
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,0
@@ -990,6 +1014,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1035,6 +1060,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1369,7 +1402,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wbmgt [option]... command [option|parameter|file]...",
"Wiimms BMG Tool : Convert and patch raw and text BMG (message) files.",
0,
- 24,
+ 25,
option_tab_tool,
0
},
@@ -1412,6 +1445,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wbmgt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wbmgt.h b/project/src/ui/ui-wbmgt.h
index 722ed02..f828bab 100644
--- a/project/src/ui/ui-wbmgt.h
+++ b/project/src/ui/ui-wbmgt.h
@@ -95,6 +95,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -123,7 +124,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 62
+ OPT__N_TOTAL // == 63
} enumOptions;
@@ -205,6 +206,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -297,6 +300,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -320,7 +324,7 @@ typedef enum enumCommands
CMD_PATCH,
- CMD__N // == 22
+ CMD__N // == 23
} enumCommands;
@@ -361,6 +365,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wctct.c b/project/src/ui/ui-wctct.c
index 8569f2c..2edbaab 100644
--- a/project/src/ui/ui-wctct.c
+++ b/project/src/ui/ui-wctct.c
@@ -413,6 +413,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -653,7 +662,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" 0x3b:0x41 and 0x44:0xfe."
},
- {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 81
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 82
};
@@ -681,6 +690,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -800,6 +815,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -835,6 +851,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -1018,61 +1035,62 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_OLD_SPINY,
- /* 0x08b */ OPT_CRS1,
- /* 0x08c */ OPT_CHDIR,
- /* 0x08d */ OPT_ROUND,
- /* 0x08e */ OPT_RAW,
- /* 0x08f */ OPT_BMG_ENDIAN,
- /* 0x090 */ OPT_BMG_ENCODING,
- /* 0x091 */ OPT_BMG_INF_SIZE,
- /* 0x092 */ OPT_BMG_MID,
- /* 0x093 */ OPT_FORCE_ATTRIB,
- /* 0x094 */ OPT_DEF_ATTRIB,
- /* 0x095 */ OPT_NO_ATTRIB,
- /* 0x096 */ OPT_X_ESCAPES,
- /* 0x097 */ OPT_OLD_ESCAPES,
- /* 0x098 */ OPT_NO_BMG_COLORS,
- /* 0x099 */ OPT_BMG_COLORS,
- /* 0x09a */ OPT_NO_BMG_INLINE,
- /* 0x09b */ OPT_NO_ECHO,
- /* 0x09c */ OPT_UTF_8,
- /* 0x09d */ OPT_NO_UTF_8,
- /* 0x09e */ OPT_FORCE,
- /* 0x09f */ OPT_REPAIR_MAGICS,
- /* 0x0a0 */ OPT_OLD,
- /* 0x0a1 */ OPT_STD,
- /* 0x0a2 */ OPT_NEW,
- /* 0x0a3 */ OPT_EXTRACT,
- /* 0x0a4 */ OPT_LIST,
- /* 0x0a5 */ OPT_REF,
- /* 0x0a6 */ OPT_FULL,
- /* 0x0a7 */ OPT_HEX,
- /* 0x0a8 */ OPT_CT_DIR,
- /* 0x0a9 */ OPT_CT_LOG,
- /* 0x0aa */ OPT_ALLOW_SLOTS,
- /* 0x0ab */ OPT_IMAGES,
- /* 0x0ac */ OPT_LOAD_BMG,
- /* 0x0ad */ OPT_PATCH_BMG,
- /* 0x0ae */ OPT_MACRO_BMG,
- /* 0x0af */ OPT_FILTER_BMG,
- /* 0x0b0 */ OPT_PATCH_NAMES,
- /* 0x0b1 */ OPT_ORDER_BY,
- /* 0x0b2 */ OPT_ORDER_ALL,
- /* 0x0b3 */ OPT_DYNAMIC,
- /* 0x0b4 */ OPT_WRITE_TRACKS,
- /* 0x0b5 */ OPT_NUMBER,
- /* 0x0b6 */ OPT_SECTIONS,
- /* 0x0b7 */ 0,0,0,0, 0,0,0,0, 0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_OLD_SPINY,
+ /* 0x08c */ OPT_CRS1,
+ /* 0x08d */ OPT_CHDIR,
+ /* 0x08e */ OPT_ROUND,
+ /* 0x08f */ OPT_RAW,
+ /* 0x090 */ OPT_BMG_ENDIAN,
+ /* 0x091 */ OPT_BMG_ENCODING,
+ /* 0x092 */ OPT_BMG_INF_SIZE,
+ /* 0x093 */ OPT_BMG_MID,
+ /* 0x094 */ OPT_FORCE_ATTRIB,
+ /* 0x095 */ OPT_DEF_ATTRIB,
+ /* 0x096 */ OPT_NO_ATTRIB,
+ /* 0x097 */ OPT_X_ESCAPES,
+ /* 0x098 */ OPT_OLD_ESCAPES,
+ /* 0x099 */ OPT_NO_BMG_COLORS,
+ /* 0x09a */ OPT_BMG_COLORS,
+ /* 0x09b */ OPT_NO_BMG_INLINE,
+ /* 0x09c */ OPT_NO_ECHO,
+ /* 0x09d */ OPT_UTF_8,
+ /* 0x09e */ OPT_NO_UTF_8,
+ /* 0x09f */ OPT_FORCE,
+ /* 0x0a0 */ OPT_REPAIR_MAGICS,
+ /* 0x0a1 */ OPT_OLD,
+ /* 0x0a2 */ OPT_STD,
+ /* 0x0a3 */ OPT_NEW,
+ /* 0x0a4 */ OPT_EXTRACT,
+ /* 0x0a5 */ OPT_LIST,
+ /* 0x0a6 */ OPT_REF,
+ /* 0x0a7 */ OPT_FULL,
+ /* 0x0a8 */ OPT_HEX,
+ /* 0x0a9 */ OPT_CT_DIR,
+ /* 0x0aa */ OPT_CT_LOG,
+ /* 0x0ab */ OPT_ALLOW_SLOTS,
+ /* 0x0ac */ OPT_IMAGES,
+ /* 0x0ad */ OPT_LOAD_BMG,
+ /* 0x0ae */ OPT_PATCH_BMG,
+ /* 0x0af */ OPT_MACRO_BMG,
+ /* 0x0b0 */ OPT_FILTER_BMG,
+ /* 0x0b1 */ OPT_PATCH_NAMES,
+ /* 0x0b2 */ OPT_ORDER_BY,
+ /* 0x0b3 */ OPT_ORDER_ALL,
+ /* 0x0b4 */ OPT_DYNAMIC,
+ /* 0x0b5 */ OPT_WRITE_TRACKS,
+ /* 0x0b6 */ OPT_NUMBER,
+ /* 0x0b7 */ OPT_SECTIONS,
+ /* 0x0b8 */ 0,0,0,0, 0,0,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,
@@ -1100,115 +1118,121 @@ static u8 option_allowed_cmd_HELP[47] = // cmd #2
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_ARGTEST[47] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[47] = // cmd #3
+{
+ 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[47] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_TEST[47] = // cmd #4
+static u8 option_allowed_cmd_TEST[47] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_COLORS[47] = // cmd #5
+static u8 option_allowed_cmd_COLORS[47] = // cmd #6
{
0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_ERROR[47] = // cmd #6
+static u8 option_allowed_cmd_ERROR[47] = // cmd #7
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1
};
-static u8 option_allowed_cmd_FILETYPE[47] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[47] = // cmd #8
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[47] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[47] = // cmd #9
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_SYMBOLS[47] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[47] = // cmd #10
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[47] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[47] = // cmd #11
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_CALCULATE[47] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[47] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_FLOAT[47] = // cmd #12
+static u8 option_allowed_cmd_FLOAT[47] = // cmd #13
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_EXPORT[47] = // cmd #13
+static u8 option_allowed_cmd_EXPORT[47] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_RAWDUMP[47] = // cmd #14
+static u8 option_allowed_cmd_RAWDUMP[47] = // cmd #15
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,1,1,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_DUMP[47] = // cmd #15
+static u8 option_allowed_cmd_DUMP[47] = // cmd #16
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1,
1,1,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_CAT[47] = // cmd #16
+static u8 option_allowed_cmd_CAT[47] = // cmd #17
{
0,0,0,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,1,1,1,1, 1,1,0,1,1,
1,1,1,1,1, 0,1,0,0,0, 0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_BMG[47] = // cmd #17
+static u8 option_allowed_cmd_BMG[47] = // cmd #18
{
0,0,1,1,1, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,1,1,1, 1,1,0,1,1,
1,1,1,1,1, 0,1,0,0,0, 0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_TRACKS[47] = // cmd #18
+static u8 option_allowed_cmd_TRACKS[47] = // cmd #19
{
0,0,1,1,1, 1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,1,1,1,1, 1,1,0,1,1,
1,1,1,1,1, 0,1,0,0,0, 0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_DECODE[47] = // cmd #19
+static u8 option_allowed_cmd_DECODE[47] = // cmd #20
{
0,0,0,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,1,1,1,1, 1,1,0,1,1,
1,1,1,1,1, 0,1,1,1,1, 1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_CREATE[47] = // cmd #20
+static u8 option_allowed_cmd_CREATE[47] = // cmd #21
{
0,0,1,1,1, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,1,0,0, 0,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_PATCH[47] = // cmd #21
+static u8 option_allowed_cmd_PATCH[47] = // cmd #22
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,1,1,
1,1,1,1,1, 0,1,1,1,1, 1,1,1,1,1, 1,0
@@ -1225,6 +1249,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1275,6 +1300,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1601,7 +1634,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Wiimms CT-CODE Tool : Manage the CT-CODE extension. BRRES, TEX0,"
" CT-CODE, CT-TEXT and LE-BIN files are accepted as input.",
0,
- 26,
+ 27,
option_tab_tool,
0
},
@@ -1644,6 +1677,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wctct CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wctct.h b/project/src/ui/ui-wctct.h
index cfe351a..624b94a 100644
--- a/project/src/ui/ui-wctct.h
+++ b/project/src/ui/ui-wctct.h
@@ -110,6 +110,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -142,7 +143,7 @@ typedef enum enumOptions
OPT_CT_LOG,
OPT_ALLOW_SLOTS,
- OPT__N_TOTAL // == 81
+ OPT__N_TOTAL // == 82
} enumOptions;
@@ -241,6 +242,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -367,6 +370,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -389,7 +393,7 @@ typedef enum enumCommands
CMD_PATCH,
- CMD__N // == 22
+ CMD__N // == 23
} enumCommands;
@@ -431,6 +435,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wimgt.c b/project/src/ui/ui-wimgt.c
index 0fae748..b2742d6 100644
--- a/project/src/ui/ui-wimgt.c
+++ b/project/src/ui/ui-wimgt.c
@@ -276,6 +276,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -473,7 +482,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 == 55
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 56
};
@@ -495,6 +504,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -554,6 +569,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -585,6 +601,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -725,36 +742,37 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x078 x */ OPT_TRANSFORM,
/* 0x079 */ 0,0,0,0, 0,0,0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_UTF_8,
- /* 0x08c */ OPT_NO_UTF_8,
- /* 0x08d */ OPT_FORCE,
- /* 0x08e */ OPT_REPAIR_MAGICS,
- /* 0x08f */ OPT_OLD,
- /* 0x090 */ OPT_STD,
- /* 0x091 */ OPT_NEW,
- /* 0x092 */ OPT_EXTRACT,
- /* 0x093 */ OPT_NUMBER,
- /* 0x094 */ OPT_MIPMAPS,
- /* 0x095 */ OPT_NO_MIPMAPS,
- /* 0x096 */ OPT_N_MIPMAPS,
- /* 0x097 */ OPT_MAX_MIPMAPS,
- /* 0x098 */ OPT_MIPMAP_SIZE,
- /* 0x099 */ OPT_FAST_MIPMAPS,
- /* 0x09a */ OPT_CMPR_DEFAULT,
- /* 0x09b */ OPT_PRE_CONVERT,
- /* 0x09c */ OPT_STRIP,
- /* 0x09d */ OPT_SECTIONS,
- /* 0x09e */ 0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_UTF_8,
+ /* 0x08d */ OPT_NO_UTF_8,
+ /* 0x08e */ OPT_FORCE,
+ /* 0x08f */ OPT_REPAIR_MAGICS,
+ /* 0x090 */ OPT_OLD,
+ /* 0x091 */ OPT_STD,
+ /* 0x092 */ OPT_NEW,
+ /* 0x093 */ OPT_EXTRACT,
+ /* 0x094 */ OPT_NUMBER,
+ /* 0x095 */ OPT_MIPMAPS,
+ /* 0x096 */ OPT_NO_MIPMAPS,
+ /* 0x097 */ OPT_N_MIPMAPS,
+ /* 0x098 */ OPT_MAX_MIPMAPS,
+ /* 0x099 */ OPT_MIPMAP_SIZE,
+ /* 0x09a */ OPT_FAST_MIPMAPS,
+ /* 0x09b */ OPT_CMPR_DEFAULT,
+ /* 0x09c */ OPT_PRE_CONVERT,
+ /* 0x09d */ OPT_STRIP,
+ /* 0x09e */ OPT_SECTIONS,
+ /* 0x09f */ 0,
/* 0x0a0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x0b0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x0c0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
@@ -782,67 +800,72 @@ static u8 option_allowed_cmd_HELP[26] = // cmd #2
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1
};
-static u8 option_allowed_cmd_ARGTEST[26] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[26] = // cmd #3
+{
+ 0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
+};
+
+static u8 option_allowed_cmd_ARGTEST[26] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1
};
-static u8 option_allowed_cmd_TEST[26] = // cmd #4
+static u8 option_allowed_cmd_TEST[26] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1
};
-static u8 option_allowed_cmd_COLORS[26] = // cmd #5
+static u8 option_allowed_cmd_COLORS[26] = // cmd #6
{
0,1,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_ERROR[26] = // cmd #6
+static u8 option_allowed_cmd_ERROR[26] = // cmd #7
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 1
};
-static u8 option_allowed_cmd_FILETYPE[26] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[26] = // cmd #8
{
0,1,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_FILEATTRIB[26] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[26] = // cmd #9
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_LIST[26] = // cmd #9
+static u8 option_allowed_cmd_LIST[26] = // cmd #10
{
0,1,1,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_LIST_L[26] = // cmd #10
+static u8 option_allowed_cmd_LIST_L[26] = // cmd #11
{
0,1,1,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_LIST_LL[26] = // cmd #11
+static u8 option_allowed_cmd_LIST_LL[26] = // cmd #12
{
0,1,1,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0
};
-static u8 option_allowed_cmd_DECODE[26] = // cmd #12
+static u8 option_allowed_cmd_DECODE[26] = // cmd #13
{
0,0,0,0,1, 1,1,1,1,1, 1,1,1,0,1, 1,1,1,1,1, 1,1,1,1,1, 0
};
-static u8 option_allowed_cmd_ENCODE[26] = // cmd #13
+static u8 option_allowed_cmd_ENCODE[26] = // cmd #14
{
0,0,0,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0
};
-static u8 option_allowed_cmd_CONVERT[26] = // cmd #14
+static u8 option_allowed_cmd_CONVERT[26] = // cmd #15
{
0,0,0,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0
};
-static u8 option_allowed_cmd_COPY[26] = // cmd #15
+static u8 option_allowed_cmd_COPY[26] = // cmd #16
{
0,0,0,0,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0
};
@@ -858,6 +881,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -900,6 +924,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1135,7 +1167,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Wiimms Image Tool : Extract and convert graphic images. The file"
" formats TPL, TEX, BTI, BREFT and PNG are supported.",
0,
- 21,
+ 22,
option_tab_tool,
0
},
@@ -1178,6 +1210,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wimgt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wimgt.h b/project/src/ui/ui-wimgt.h
index 42d5994..e7cfe21 100644
--- a/project/src/ui/ui-wimgt.h
+++ b/project/src/ui/ui-wimgt.h
@@ -89,6 +89,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -116,7 +117,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 55
+ OPT__N_TOTAL // == 56
} enumOptions;
@@ -186,6 +187,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -237,6 +240,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -254,7 +258,7 @@ typedef enum enumCommands
CMD_COPY,
- CMD__N // == 16
+ CMD__N // == 17
} enumCommands;
@@ -294,6 +298,7 @@ typedef enum enumGetOpt
GO_TRANSFORM = 'x',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wkclt.c b/project/src/ui/ui-wkclt.c
index 2102123..5918bdc 100644
--- a/project/src/ui/ui-wkclt.c
+++ b/project/src/ui/ui-wkclt.c
@@ -385,6 +385,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -633,7 +642,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 == 71
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 72
};
@@ -661,6 +670,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_TEST_VERBOSE =
{ OPT_VERBOSE, false, false, false, false, false, 'v', "verbose",
0,
@@ -840,6 +855,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -883,6 +899,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -1035,53 +1052,53 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_SCALE,
- /* 0x08c */ OPT_SHIFT,
- /* 0x08d */ OPT_XSS,
- /* 0x08e */ OPT_YSS,
- /* 0x08f */ OPT_ZSS,
- /* 0x090 */ OPT_ROT,
- /* 0x091 */ OPT_XROT,
- /* 0x092 */ OPT_YROT,
- /* 0x093 */ OPT_ZROT,
- /* 0x094 */ OPT_TRANSLATE,
- /* 0x095 */ OPT_NULL,
- /* 0x096 */ OPT_NEXT,
- /* 0x097 */ OPT_ASCALE,
- /* 0x098 */ OPT_AROT,
- /* 0x099 */ OPT_TFORM_SCRIPT,
- /* 0x09a */ OPT_KCL,
- /* 0x09b */ OPT_KCL_FLAG,
- /* 0x09c */ OPT_KCL_SCRIPT,
- /* 0x09d */ OPT_TRI_AREA,
- /* 0x09e */ OPT_TRI_HEIGHT,
- /* 0x09f */ OPT_FLAG_FILE,
- /* 0x0a0 */ OPT_XTRIDATA,
- /* 0x0a1 */ OPT_SLOT,
- /* 0x0a2 */ OPT_ROUND,
- /* 0x0a3 */ OPT_NO_ECHO,
- /* 0x0a4 */ OPT_UTF_8,
- /* 0x0a5 */ OPT_NO_UTF_8,
- /* 0x0a6 */ OPT_FORCE,
- /* 0x0a7 */ OPT_REPAIR_MAGICS,
- /* 0x0a8 */ OPT_TINY,
- /* 0x0a9 */ OPT_OLD,
- /* 0x0aa */ OPT_STD,
- /* 0x0ab */ OPT_NEW,
- /* 0x0ac */ OPT_EXTRACT,
- /* 0x0ad */ OPT_NUMBER,
- /* 0x0ae */ OPT_SECTIONS,
- /* 0x0af */ 0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_SCALE,
+ /* 0x08d */ OPT_SHIFT,
+ /* 0x08e */ OPT_XSS,
+ /* 0x08f */ OPT_YSS,
+ /* 0x090 */ OPT_ZSS,
+ /* 0x091 */ OPT_ROT,
+ /* 0x092 */ OPT_XROT,
+ /* 0x093 */ OPT_YROT,
+ /* 0x094 */ OPT_ZROT,
+ /* 0x095 */ OPT_TRANSLATE,
+ /* 0x096 */ OPT_NULL,
+ /* 0x097 */ OPT_NEXT,
+ /* 0x098 */ OPT_ASCALE,
+ /* 0x099 */ OPT_AROT,
+ /* 0x09a */ OPT_TFORM_SCRIPT,
+ /* 0x09b */ OPT_KCL,
+ /* 0x09c */ OPT_KCL_FLAG,
+ /* 0x09d */ OPT_KCL_SCRIPT,
+ /* 0x09e */ OPT_TRI_AREA,
+ /* 0x09f */ OPT_TRI_HEIGHT,
+ /* 0x0a0 */ OPT_FLAG_FILE,
+ /* 0x0a1 */ OPT_XTRIDATA,
+ /* 0x0a2 */ OPT_SLOT,
+ /* 0x0a3 */ OPT_ROUND,
+ /* 0x0a4 */ OPT_NO_ECHO,
+ /* 0x0a5 */ OPT_UTF_8,
+ /* 0x0a6 */ OPT_NO_UTF_8,
+ /* 0x0a7 */ OPT_FORCE,
+ /* 0x0a8 */ OPT_REPAIR_MAGICS,
+ /* 0x0a9 */ OPT_TINY,
+ /* 0x0aa */ OPT_OLD,
+ /* 0x0ab */ OPT_STD,
+ /* 0x0ac */ OPT_NEW,
+ /* 0x0ad */ OPT_EXTRACT,
+ /* 0x0ae */ OPT_NUMBER,
+ /* 0x0af */ OPT_SECTIONS,
/* 0x0b0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,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,
@@ -1110,163 +1127,169 @@ static u8 option_allowed_cmd_HELP[37] = // cmd #2
1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_ARGTEST[37] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[37] = // cmd #3
+{
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[37] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_TEST[37] = // cmd #4
+static u8 option_allowed_cmd_TEST[37] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1
};
-static u8 option_allowed_cmd_COLORS[37] = // cmd #5
+static u8 option_allowed_cmd_COLORS[37] = // cmd #6
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,1,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_ERROR[37] = // cmd #6
+static u8 option_allowed_cmd_ERROR[37] = // cmd #7
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,0, 0,0,0,0,0,
0,0,0,0,0, 0,1
};
-static u8 option_allowed_cmd_FILETYPE[37] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[37] = // cmd #8
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[37] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[37] = // cmd #9
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_SYMBOLS[37] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[37] = // cmd #10
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[37] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[37] = // cmd #11
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_CALCULATE[37] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[37] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_MATRIX[37] = // cmd #12
+static u8 option_allowed_cmd_MATRIX[37] = // cmd #13
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_FLOAT[37] = // cmd #13
+static u8 option_allowed_cmd_FLOAT[37] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 1,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_EXPORT[37] = // cmd #14
+static u8 option_allowed_cmd_EXPORT[37] = // cmd #15
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0
};
-static u8 option_allowed_cmd_CAT[37] = // cmd #15
+static u8 option_allowed_cmd_CAT[37] = // cmd #16
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 1,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_DECODE[37] = // cmd #16
+static u8 option_allowed_cmd_DECODE[37] = // cmd #17
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 1,1,1,1,1,
1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_ENCODE[37] = // cmd #17
+static u8 option_allowed_cmd_ENCODE[37] = // cmd #18
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 1,1,1,1,1,
1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_COPY[37] = // cmd #18
+static u8 option_allowed_cmd_COPY[37] = // cmd #19
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 1,1,1,1,1,
1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_CFF[37] = // cmd #19
+static u8 option_allowed_cmd_CFF[37] = // cmd #20
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,1,0,1,0, 1,1,1,1,1,
1,1,1,1,1, 1,0
};
-static u8 option_allowed_cmd_FLAGS[37] = // cmd #20
+static u8 option_allowed_cmd_FLAGS[37] = // cmd #21
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,1,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_DUMP[37] = // cmd #21
+static u8 option_allowed_cmd_DUMP[37] = // cmd #22
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_DBRIEF[37] = // cmd #22
+static u8 option_allowed_cmd_DBRIEF[37] = // cmd #23
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_LIST[37] = // cmd #23
+static u8 option_allowed_cmd_LIST[37] = // cmd #24
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_TRIANGLES[37] = // cmd #24
+static u8 option_allowed_cmd_TRIANGLES[37] = // cmd #25
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_TRAVERSE[37] = // cmd #25
+static u8 option_allowed_cmd_TRAVERSE[37] = // cmd #26
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_FALL[37] = // cmd #26
+static u8 option_allowed_cmd_FALL[37] = // cmd #27
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,1,0,1,0, 0,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_CHECK[37] = // cmd #27
+static u8 option_allowed_cmd_CHECK[37] = // cmd #28
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,1,0, 1,1,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_ANALYZE[37] = // cmd #28
+static u8 option_allowed_cmd_ANALYZE[37] = // cmd #29
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 1,0
};
-static u8 option_allowed_cmd_BLOW[37] = // cmd #29
+static u8 option_allowed_cmd_BLOW[37] = // cmd #30
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 1,0
@@ -1283,6 +1306,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1329,6 +1353,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1970,7 +2002,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Wiimms KCL Tool : Analyze, modify, export and create KCL and OBJ"
" files.",
0,
- 25,
+ 26,
option_tab_tool,
0
},
@@ -2013,6 +2045,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wkclt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wkclt.h b/project/src/ui/ui-wkclt.h
index 41097b5..9d389d4 100644
--- a/project/src/ui/ui-wkclt.h
+++ b/project/src/ui/ui-wkclt.h
@@ -100,6 +100,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -132,7 +133,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 71
+ OPT__N_TOTAL // == 72
} enumOptions;
@@ -225,6 +226,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -341,6 +344,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -371,7 +375,7 @@ typedef enum enumCommands
CMD_BLOW,
- CMD__N // == 30
+ CMD__N // == 31
} enumCommands;
@@ -410,6 +414,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wkmpt.c b/project/src/ui/ui-wkmpt.c
index 5a47964..a8c041e 100644
--- a/project/src/ui/ui-wkmpt.c
+++ b/project/src/ui/ui-wkmpt.c
@@ -505,6 +505,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -858,7 +867,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 == 92
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 93
};
@@ -886,6 +895,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_TEST_VERBOSE =
{ OPT_VERBOSE, false, false, false, false, false, 'v', "verbose",
0,
@@ -1091,6 +1106,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -1135,6 +1151,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -1326,71 +1343,72 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x077 w */ OPT_DRAW,
/* 0x078 */ 0,0,0,0, 0,0,0,0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_SCALE,
- /* 0x08c */ OPT_SHIFT,
- /* 0x08d */ OPT_XSS,
- /* 0x08e */ OPT_YSS,
- /* 0x08f */ OPT_ZSS,
- /* 0x090 */ OPT_ROT,
- /* 0x091 */ OPT_XROT,
- /* 0x092 */ OPT_YROT,
- /* 0x093 */ OPT_ZROT,
- /* 0x094 */ OPT_YPOS,
- /* 0x095 */ OPT_TRANSLATE,
- /* 0x096 */ OPT_NULL,
- /* 0x097 */ OPT_NEXT,
- /* 0x098 */ OPT_ASCALE,
- /* 0x099 */ OPT_AROT,
- /* 0x09a */ OPT_TFORM_SCRIPT,
- /* 0x09b */ OPT_RM_GOBJ,
- /* 0x09c */ OPT_BATTLE,
- /* 0x09d */ OPT_EXPORT_FLAGS,
- /* 0x09e */ OPT_ROUTE_OPTIONS,
- /* 0x09f */ OPT_WIM0,
- /* 0x0a0 */ OPT_SLOT,
- /* 0x0a1 */ OPT_POS_MODE,
- /* 0x0a2 */ OPT_POS_FILE,
- /* 0x0a3 */ OPT_PNG,
- /* 0x0a4 */ OPT_LOAD_KCL,
- /* 0x0a5 */ OPT_KCL,
- /* 0x0a6 */ OPT_KCL_FLAG,
- /* 0x0a7 */ OPT_KCL_SCRIPT,
- /* 0x0a8 */ OPT_TRI_AREA,
- /* 0x0a9 */ OPT_TRI_HEIGHT,
- /* 0x0aa */ OPT_FLAG_FILE,
- /* 0x0ab */ OPT_XTRIDATA,
- /* 0x0ac */ OPT_KMP,
- /* 0x0ad */ OPT_SPEED_MOD,
- /* 0x0ae */ OPT_KTPT2,
- /* 0x0af */ OPT_TFORM_KMP,
- /* 0x0b0 */ OPT_REPAIR_XPF,
- /* 0x0b1 */ OPT_GAMEMODES,
- /* 0x0b2 */ OPT_ROUND,
- /* 0x0b3 */ OPT_EPSILON,
- /* 0x0b4 */ OPT_DIFF,
- /* 0x0b5 */ OPT_NO_ECHO,
- /* 0x0b6 */ OPT_UTF_8,
- /* 0x0b7 */ OPT_NO_UTF_8,
- /* 0x0b8 */ OPT_FORCE,
- /* 0x0b9 */ OPT_REPAIR_MAGICS,
- /* 0x0ba */ OPT_TINY,
- /* 0x0bb */ OPT_OLD,
- /* 0x0bc */ OPT_STD,
- /* 0x0bd */ OPT_NEW,
- /* 0x0be */ OPT_EXTRACT,
- /* 0x0bf */ OPT_NUMBER,
- /* 0x0c0 */ OPT_SECTIONS,
- /* 0x0c1 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_SCALE,
+ /* 0x08d */ OPT_SHIFT,
+ /* 0x08e */ OPT_XSS,
+ /* 0x08f */ OPT_YSS,
+ /* 0x090 */ OPT_ZSS,
+ /* 0x091 */ OPT_ROT,
+ /* 0x092 */ OPT_XROT,
+ /* 0x093 */ OPT_YROT,
+ /* 0x094 */ OPT_ZROT,
+ /* 0x095 */ OPT_YPOS,
+ /* 0x096 */ OPT_TRANSLATE,
+ /* 0x097 */ OPT_NULL,
+ /* 0x098 */ OPT_NEXT,
+ /* 0x099 */ OPT_ASCALE,
+ /* 0x09a */ OPT_AROT,
+ /* 0x09b */ OPT_TFORM_SCRIPT,
+ /* 0x09c */ OPT_RM_GOBJ,
+ /* 0x09d */ OPT_BATTLE,
+ /* 0x09e */ OPT_EXPORT_FLAGS,
+ /* 0x09f */ OPT_ROUTE_OPTIONS,
+ /* 0x0a0 */ OPT_WIM0,
+ /* 0x0a1 */ OPT_SLOT,
+ /* 0x0a2 */ OPT_POS_MODE,
+ /* 0x0a3 */ OPT_POS_FILE,
+ /* 0x0a4 */ OPT_PNG,
+ /* 0x0a5 */ OPT_LOAD_KCL,
+ /* 0x0a6 */ OPT_KCL,
+ /* 0x0a7 */ OPT_KCL_FLAG,
+ /* 0x0a8 */ OPT_KCL_SCRIPT,
+ /* 0x0a9 */ OPT_TRI_AREA,
+ /* 0x0aa */ OPT_TRI_HEIGHT,
+ /* 0x0ab */ OPT_FLAG_FILE,
+ /* 0x0ac */ OPT_XTRIDATA,
+ /* 0x0ad */ OPT_KMP,
+ /* 0x0ae */ OPT_SPEED_MOD,
+ /* 0x0af */ OPT_KTPT2,
+ /* 0x0b0 */ OPT_TFORM_KMP,
+ /* 0x0b1 */ OPT_REPAIR_XPF,
+ /* 0x0b2 */ OPT_GAMEMODES,
+ /* 0x0b3 */ OPT_ROUND,
+ /* 0x0b4 */ OPT_EPSILON,
+ /* 0x0b5 */ OPT_DIFF,
+ /* 0x0b6 */ OPT_NO_ECHO,
+ /* 0x0b7 */ OPT_UTF_8,
+ /* 0x0b8 */ OPT_NO_UTF_8,
+ /* 0x0b9 */ OPT_FORCE,
+ /* 0x0ba */ OPT_REPAIR_MAGICS,
+ /* 0x0bb */ OPT_TINY,
+ /* 0x0bc */ OPT_OLD,
+ /* 0x0bd */ OPT_STD,
+ /* 0x0be */ OPT_NEW,
+ /* 0x0bf */ OPT_EXTRACT,
+ /* 0x0c0 */ OPT_NUMBER,
+ /* 0x0c1 */ OPT_SECTIONS,
+ /* 0x0c2 */ 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,
/* 0x0f0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
@@ -1417,163 +1435,169 @@ static u8 option_allowed_cmd_HELP[49] = // cmd #2
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1
};
-static u8 option_allowed_cmd_ARGTEST[49] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[49] = // cmd #3
+{
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[49] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1
};
-static u8 option_allowed_cmd_TEST[49] = // cmd #4
+static u8 option_allowed_cmd_TEST[49] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1
};
-static u8 option_allowed_cmd_COLORS[49] = // cmd #5
+static u8 option_allowed_cmd_COLORS[49] = // cmd #6
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_ERROR[49] = // cmd #6
+static u8 option_allowed_cmd_ERROR[49] = // cmd #7
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_FILETYPE[49] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[49] = // cmd #8
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[49] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[49] = // cmd #9
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_SYMBOLS[49] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[49] = // cmd #10
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[49] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[49] = // cmd #11
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_CALCULATE[49] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[49] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_MATRIX[49] = // cmd #12
+static u8 option_allowed_cmd_MATRIX[49] = // cmd #13
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 0,1,0,0,1,
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_FLOAT[49] = // cmd #13
+static u8 option_allowed_cmd_FLOAT[49] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_STARTPOS[49] = // cmd #14
+static u8 option_allowed_cmd_STARTPOS[49] = // cmd #15
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_OBJECTS[49] = // cmd #15
+static u8 option_allowed_cmd_OBJECTS[49] = // cmd #16
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_EXPORT[49] = // cmd #16
+static u8 option_allowed_cmd_EXPORT[49] = // cmd #17
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_XEXPORT[49] = // cmd #17
+static u8 option_allowed_cmd_XEXPORT[49] = // cmd #18
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_CAT[49] = // cmd #18
+static u8 option_allowed_cmd_CAT[49] = // cmd #19
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
1,1,1,1,0, 0,1,1,1,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_DECODE[49] = // cmd #19
+static u8 option_allowed_cmd_DECODE[49] = // cmd #20
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
1,1,1,1,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0
};
-static u8 option_allowed_cmd_ENCODE[49] = // cmd #20
+static u8 option_allowed_cmd_ENCODE[49] = // cmd #21
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
0,0,0,0,0, 0,0,1,1,1, 1,1,1,1,1, 1,1,1,0
};
-static u8 option_allowed_cmd_DIFF[49] = // cmd #21
+static u8 option_allowed_cmd_DIFF[49] = // cmd #22
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,1, 1,0,0,0,1, 0,1,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_DRAW[49] = // cmd #22
+static u8 option_allowed_cmd_DRAW[49] = // cmd #23
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,0,1, 0,1,0,0,0,
1,1,1,1,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0
};
-static u8 option_allowed_cmd_CHECK[49] = // cmd #23
+static u8 option_allowed_cmd_CHECK[49] = // cmd #24
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
0,1,0,0,0, 0,1,1,1,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_STGI[49] = // cmd #24
+static u8 option_allowed_cmd_STGI[49] = // cmd #25
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_KTPT[49] = // cmd #25
+static u8 option_allowed_cmd_KTPT[49] = // cmd #26
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_ROUTES[49] = // cmd #26
+static u8 option_allowed_cmd_ROUTES[49] = // cmd #27
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_GOBJ[49] = // cmd #27
+static u8 option_allowed_cmd_GOBJ[49] = // cmd #28
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_GAMEMODES[49] = // cmd #28
+static u8 option_allowed_cmd_GAMEMODES[49] = // cmd #29
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1,
1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
};
-static u8 option_allowed_cmd_WIM0[49] = // cmd #29
+static u8 option_allowed_cmd_WIM0[49] = // cmd #30
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0
@@ -1590,6 +1614,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1645,6 +1670,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -2143,7 +2176,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Wiimms KMP Tool : Analyze, modify, export and create (compile) KMP"
" files.",
0,
- 34,
+ 35,
option_tab_tool,
0
},
@@ -2186,6 +2219,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wkmpt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wkmpt.h b/project/src/ui/ui-wkmpt.h
index 2b8541d..af16b9e 100644
--- a/project/src/ui/ui-wkmpt.h
+++ b/project/src/ui/ui-wkmpt.h
@@ -112,6 +112,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -153,7 +154,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 92
+ OPT__N_TOTAL // == 93
} enumOptions;
@@ -260,6 +261,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -375,6 +378,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -405,7 +409,7 @@ typedef enum enumCommands
CMD_WIM0,
- CMD__N // == 30
+ CMD__N // == 31
} enumCommands;
@@ -447,6 +451,7 @@ typedef enum enumGetOpt
GO_DRAW = 'w',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wlect.c b/project/src/ui/ui-wlect.c
index 309da13..ea96afd 100644
--- a/project/src/ui/ui-wlect.c
+++ b/project/src/ui/ui-wlect.c
@@ -171,27 +171,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
{ OPT_SPEEDOMETER, true, false, false, false, false, 0, "speedometer",
"[=mode]",
"Enable or disable the speedometer. Mode is one of OFF, AUTO (default,"
- " don't change setting), ON (enable it for Wii and WiiU only; default,"
- " if option is used without parameter) or FORCE (enable it for Wii,"
- " Wii U and for Dolphin)."
+ " don't change setting), ON (default, if option is used without"
+ " parameter) or FRACTION (=1DIGIT), 2DIGITS and 3DIGITS."
},
- { OPT_RESERVED_1B9, false, true, false, false, false, 0, "reserved-1b9",
- "[=mode]",
- "Set LPAR byte at offset 0x1b9 to this value. Value -1 disables this"
- " option."
- },
-
- { OPT_RESERVED_1BA, false, true, false, false, false, 0, "reserved-1ba",
- "[=mode]",
- "Set LPAR byte at offset 0x1ba to this value. Value -1 disables this"
- " option."
- },
-
- { OPT_RESERVED_1BB, false, true, false, false, false, 0, "reserved-1bb",
- "[=mode]",
- "Set LPAR byte at offset 0x1bb to this value. Value -1 disables this"
- " option."
+ { OPT_DEBUG, false, false, false, false, false, 0, "debug",
+ "mode",
+ "Enable or disable the debug output while racing. Mode is one of OFF,"
+ " AUTO (default, don't change setting), USER or 100 to 199 for"
+ " predefined setups."
},
{ OPT_TRACK_DIR, false, false, false, false, true, 0, "track-dir",
@@ -363,7 +351,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
"Print in machine readable sections and parameter lines."
},
- {0,0,0,0,0,0,0,0,0,0}, // OPT__N_SPECIFIC == 45
+ {0,0,0,0,0,0,0,0,0,0}, // OPT__N_SPECIFIC == 43
//----- global options -----
@@ -383,6 +371,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -598,7 +595,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 == 78
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 77
};
@@ -626,6 +623,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -713,6 +716,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -724,6 +728,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_CALCULATE, "CALCULATE", 0, 0 },
{ CMD_FLOAT, "FLOAT", 0, 0 },
{ CMD_EXPORT, "_EXPORT", 0, 0 },
+ { CMD_DPAD, "_DPAD", 0, 0 },
{ CMD_DUMP, "DUMP", "D", 0 },
{ CMD_DL, "DL", 0, 0 },
{ CMD_DLL, "DLL", 0, 0 },
@@ -751,6 +756,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -830,12 +836,7 @@ static const struct option OptionLong[] =
{ "customtt", 2, 0, GO_CUSTOM_TT },
{ "xpflags", 2, 0, GO_XPFLAGS },
{ "speedometer", 2, 0, GO_SPEEDOMETER },
- { "reserved-1b9", 1, 0, GO_RESERVED_1B9 },
- { "reserved1b9", 1, 0, GO_RESERVED_1B9 },
- { "reserved-1ba", 1, 0, GO_RESERVED_1BA },
- { "reserved1ba", 1, 0, GO_RESERVED_1BA },
- { "reserved-1bb", 1, 0, GO_RESERVED_1BB },
- { "reserved1bb", 1, 0, GO_RESERVED_1BB },
+ { "debug", 1, 0, GO_DEBUG },
{ "track-dir", 1, 0, GO_TRACK_DIR },
{ "trackdir", 1, 0, GO_TRACK_DIR },
{ "copy-tracks", 1, 0, GO_COPY_TRACKS },
@@ -929,61 +930,60 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_ROUND,
- /* 0x08c */ OPT_NO_ECHO,
- /* 0x08d */ OPT_UTF_8,
- /* 0x08e */ OPT_NO_UTF_8,
- /* 0x08f */ OPT_LT_CLEAR,
- /* 0x090 */ OPT_LT_ONLINE,
- /* 0x091 */ OPT_LT_N_PLAYERS,
- /* 0x092 */ OPT_LT_COND_BIT,
- /* 0x093 */ OPT_LT_GAME_MODE,
- /* 0x094 */ OPT_LT_ENGINE,
- /* 0x095 */ OPT_LT_RANDOM,
- /* 0x096 */ OPT_LEX_PURGE,
- /* 0x097 */ OPT_LEX_RM_FEAT,
- /* 0x098 */ OPT_FORCE,
- /* 0x099 */ OPT_REPAIR_MAGICS,
- /* 0x09a */ OPT_OLD,
- /* 0x09b */ OPT_STD,
- /* 0x09c */ OPT_NEW,
- /* 0x09d */ OPT_EXTRACT,
- /* 0x09e */ OPT_LE_DEFINE,
- /* 0x09f */ OPT_LPAR,
- /* 0x0a0 */ OPT_ALIAS,
- /* 0x0a1 */ OPT_ENGINE,
- /* 0x0a2 */ OPT_200CC,
- /* 0x0a3 */ OPT_PERFMON,
- /* 0x0a4 */ OPT_CUSTOM_TT,
- /* 0x0a5 */ OPT_XPFLAGS,
- /* 0x0a6 */ OPT_SPEEDOMETER,
- /* 0x0a7 */ OPT_RESERVED_1B9,
- /* 0x0a8 */ OPT_RESERVED_1BA,
- /* 0x0a9 */ OPT_RESERVED_1BB,
- /* 0x0aa */ OPT_TRACK_DIR,
- /* 0x0ab */ OPT_COPY_TRACKS,
- /* 0x0ac */ OPT_MOVE_TRACKS,
- /* 0x0ad */ OPT_MOVE1_TRACKS,
- /* 0x0ae */ OPT_LINK_TRACKS,
- /* 0x0af */ OPT_LOAD_BMG,
- /* 0x0b0 */ OPT_PATCH_BMG,
- /* 0x0b1 */ OPT_MACRO_BMG,
- /* 0x0b2 */ OPT_PATCH_NAMES,
- /* 0x0b3 */ OPT_ORDER_BY,
- /* 0x0b4 */ OPT_ORDER_ALL,
- /* 0x0b5 */ OPT_NUMBER,
- /* 0x0b6 */ OPT_SECTIONS,
- /* 0x0b7 */ 0,0,0,0, 0,0,0,0, 0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_ROUND,
+ /* 0x08d */ OPT_NO_ECHO,
+ /* 0x08e */ OPT_UTF_8,
+ /* 0x08f */ OPT_NO_UTF_8,
+ /* 0x090 */ OPT_LT_CLEAR,
+ /* 0x091 */ OPT_LT_ONLINE,
+ /* 0x092 */ OPT_LT_N_PLAYERS,
+ /* 0x093 */ OPT_LT_COND_BIT,
+ /* 0x094 */ OPT_LT_GAME_MODE,
+ /* 0x095 */ OPT_LT_ENGINE,
+ /* 0x096 */ OPT_LT_RANDOM,
+ /* 0x097 */ OPT_LEX_PURGE,
+ /* 0x098 */ OPT_LEX_RM_FEAT,
+ /* 0x099 */ OPT_FORCE,
+ /* 0x09a */ OPT_REPAIR_MAGICS,
+ /* 0x09b */ OPT_OLD,
+ /* 0x09c */ OPT_STD,
+ /* 0x09d */ OPT_NEW,
+ /* 0x09e */ OPT_EXTRACT,
+ /* 0x09f */ OPT_LE_DEFINE,
+ /* 0x0a0 */ OPT_LPAR,
+ /* 0x0a1 */ OPT_ALIAS,
+ /* 0x0a2 */ OPT_ENGINE,
+ /* 0x0a3 */ OPT_200CC,
+ /* 0x0a4 */ OPT_PERFMON,
+ /* 0x0a5 */ OPT_CUSTOM_TT,
+ /* 0x0a6 */ OPT_XPFLAGS,
+ /* 0x0a7 */ OPT_SPEEDOMETER,
+ /* 0x0a8 */ OPT_DEBUG,
+ /* 0x0a9 */ OPT_TRACK_DIR,
+ /* 0x0aa */ OPT_COPY_TRACKS,
+ /* 0x0ab */ OPT_MOVE_TRACKS,
+ /* 0x0ac */ OPT_MOVE1_TRACKS,
+ /* 0x0ad */ OPT_LINK_TRACKS,
+ /* 0x0ae */ OPT_LOAD_BMG,
+ /* 0x0af */ OPT_PATCH_BMG,
+ /* 0x0b0 */ OPT_MACRO_BMG,
+ /* 0x0b1 */ OPT_PATCH_NAMES,
+ /* 0x0b2 */ OPT_ORDER_BY,
+ /* 0x0b3 */ OPT_ORDER_ALL,
+ /* 0x0b4 */ OPT_NUMBER,
+ /* 0x0b5 */ OPT_SECTIONS,
+ /* 0x0b6 */ 0,0,0,0, 0,0,0,0, 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,
@@ -999,142 +999,154 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/////////////// opt_allowed_cmd_* ///////////////
///////////////////////////////////////////////////////////////////////////////
-static u8 option_allowed_cmd_VERSION[45] = // cmd #1
+static u8 option_allowed_cmd_VERSION[43] = // cmd #1
{
0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,1
};
-static u8 option_allowed_cmd_HELP[45] = // cmd #2
+static u8 option_allowed_cmd_HELP[43] = // cmd #2
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_ARGTEST[45] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[43] = // cmd #3
+{
+ 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[43] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_TEST[45] = // cmd #4
+static u8 option_allowed_cmd_TEST[43] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_COLORS[45] = // cmd #5
+static u8 option_allowed_cmd_COLORS[43] = // cmd #6
{
0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_ERROR[45] = // cmd #6
+static u8 option_allowed_cmd_ERROR[43] = // cmd #7
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,1
};
-static u8 option_allowed_cmd_FILETYPE[45] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[43] = // cmd #8
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[45] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[43] = // cmd #9
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_SYMBOLS[45] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[43] = // cmd #10
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[45] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[43] = // cmd #11
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_CALCULATE[45] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[43] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_FLOAT[45] = // cmd #12
+static u8 option_allowed_cmd_FLOAT[43] = // cmd #13
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_EXPORT[45] = // cmd #13
+static u8 option_allowed_cmd_EXPORT[43] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_DUMP[45] = // cmd #14
+static u8 option_allowed_cmd_DPAD[43] = // cmd #15
{
- 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_DL[45] = // cmd #15
+static u8 option_allowed_cmd_DUMP[43] = // cmd #16
{
- 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_DLL[45] = // cmd #16
+static u8 option_allowed_cmd_DL[43] = // cmd #17
{
- 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_BIN_DIFF[45] = // cmd #17
+static u8 option_allowed_cmd_DLL[43] = // cmd #18
+{
+ 0,0,1,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+};
+
+static u8 option_allowed_cmd_BIN_DIFF[43] = // cmd #19
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_PATCH[45] = // cmd #18
+static u8 option_allowed_cmd_PATCH[43] = // cmd #20
{
- 0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0,
- 0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0,
+ 0,0,0,1,1, 1,1,1,1,1, 1,1,0
};
-static u8 option_allowed_cmd_LPAR[45] = // cmd #19
+static u8 option_allowed_cmd_LPAR[43] = // cmd #21
{
- 0,0,0,1,1, 1,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,0
+ 0,0,0,1,1, 1,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,1,1, 1,1,1,1,1, 1,1,0
};
-static u8 option_allowed_cmd_CREATE[45] = // cmd #20
+static u8 option_allowed_cmd_CREATE[43] = // cmd #22
{
- 0,0,0,1,1, 1,0,1,1,1, 1,0,1,0,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,0
+ 0,0,0,1,1, 1,0,1,1,1, 1,0,1,0,1, 1,1,1,1,1, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,1,1, 1,1,1,1,1, 1,1,0
};
-static u8 option_allowed_cmd_CAT[45] = // cmd #21
+static u8 option_allowed_cmd_CAT[43] = // cmd #23
{
- 0,0,0,1,1, 1,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0
+ 0,0,0,1,1, 1,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,1,0
};
-static u8 option_allowed_cmd_DECODE[45] = // cmd #22
+static u8 option_allowed_cmd_DECODE[43] = // cmd #24
{
- 0,0,0,1,1, 1,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0,
- 0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,0
+ 0,0,0,1,1, 1,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,1,1, 1,1,1,1,1, 1,1,0
};
-static u8 option_allowed_cmd_ENCODE[45] = // cmd #23
+static u8 option_allowed_cmd_ENCODE[43] = // cmd #25
{
- 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0,
- 0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,0
+ 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,1,1, 1,1,1,1,1, 1,1,0
};
@@ -1148,6 +1160,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1198,6 +1211,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1281,6 +1302,12 @@ static const InfoOption_t * option_tab_cmd_EXPORT[] =
0
};
+static const InfoOption_t * option_tab_cmd_DPAD[] =
+{
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_DUMP[] =
{
OptionInfo + OPT_LE_DEFINE,
@@ -1292,6 +1319,7 @@ static const InfoOption_t * option_tab_cmd_DUMP[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
OptionInfo + OPT_NONE, // separator
@@ -1312,6 +1340,7 @@ static const InfoOption_t * option_tab_cmd_DL[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
OptionInfo + OPT_NONE, // separator
@@ -1332,6 +1361,7 @@ static const InfoOption_t * option_tab_cmd_DLL[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
OptionInfo + OPT_NONE, // separator
@@ -1360,6 +1390,7 @@ static const InfoOption_t * option_tab_cmd_PATCH[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
OptionInfo + OPT_TRACK_DIR,
OptionInfo + OPT_COPY_TRACKS,
OptionInfo + OPT_MOVE_TRACKS,
@@ -1395,6 +1426,7 @@ static const InfoOption_t * option_tab_cmd_LPAR[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
OptionInfo + OPT_NONE, // separator
@@ -1456,6 +1488,7 @@ static const InfoOption_t * option_tab_cmd_CREATE[] =
OptionInfo + OPT_CUSTOM_TT,
OptionInfo + OPT_XPFLAGS,
OptionInfo + OPT_SPEEDOMETER,
+ OptionInfo + OPT_DEBUG,
0
};
@@ -1532,7 +1565,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,
- 26,
+ 27,
option_tab_tool,
0
},
@@ -1575,6 +1608,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wlect CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
@@ -1750,6 +1798,20 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_EXPORT
},
+ { CMD_DPAD,
+ true,
+ false,
+ false,
+ "_DPAD",
+ 0,
+ "wszst DPAD number_or_code...",
+ "This hidden command decodes and encodes D-Pad suquences for LE-CODE.",
+ 0,
+ 0,
+ option_tab_cmd_DPAD,
+ option_allowed_cmd_DPAD
+ },
+
{ CMD_DUMP,
false,
false,
@@ -1760,7 +1822,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Print an information dump for each source file. LE-CODE binaries and"
" LEX binaries are accepted as input.",
0,
- 11,
+ 12,
option_tab_cmd_DUMP,
option_allowed_cmd_DUMP
},
@@ -1774,7 +1836,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wlect DL [source]...",
"Short cut for 'DUMP --long'.",
0,
- 11,
+ 12,
option_tab_cmd_DL,
option_allowed_cmd_DL
},
@@ -1788,7 +1850,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wlect DLL [source]...",
"Short cut for 'DUMP --long --long'.",
0,
- 11,
+ 12,
option_tab_cmd_DLL,
option_allowed_cmd_DLL
},
@@ -1825,7 +1887,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Read each LE-BIN file and patch it. Use --le-define to setup cups and"
" tracks.",
0,
- 23,
+ 24,
option_tab_cmd_PATCH,
option_allowed_cmd_PATCH
},
@@ -1841,7 +1903,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
" parameters and store them as LPAR text file. Print the result to"
" standard output if no other destination is defined.",
0,
- 21,
+ 22,
option_tab_cmd_LPAR,
option_allowed_cmd_LPAR
},
@@ -1862,7 +1924,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
" names) for a LEX text file with 1 section only. LPAR for an example"
" LE-CODE parameter file.",
0,
- 28,
+ 29,
option_tab_cmd_CREATE,
option_allowed_cmd_CREATE
},
diff --git a/project/src/ui/ui-wlect.h b/project/src/ui/ui-wlect.h
index f6a6d1e..6298234 100644
--- a/project/src/ui/ui-wlect.h
+++ b/project/src/ui/ui-wlect.h
@@ -75,9 +75,7 @@ typedef enum enumOptions
OPT_CUSTOM_TT,
OPT_XPFLAGS,
OPT_SPEEDOMETER,
- OPT_RESERVED_1B9,
- OPT_RESERVED_1BA,
- OPT_RESERVED_1BB,
+ OPT_DEBUG,
OPT_TRACK_DIR,
OPT_COPY_TRACKS,
OPT_MOVE_TRACKS,
@@ -101,13 +99,14 @@ typedef enum enumOptions
OPT_IGNORE,
OPT_SECTIONS,
- OPT__N_SPECIFIC, // == 45
+ OPT__N_SPECIFIC, // == 43
//----- global options -----
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -139,7 +138,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 78
+ OPT__N_TOTAL // == 77
} enumOptions;
@@ -173,9 +172,7 @@ typedef enum enumOptions
// OB_CUSTOM_TT = 1llu << OPT_CUSTOM_TT,
// OB_XPFLAGS = 1llu << OPT_XPFLAGS,
// OB_SPEEDOMETER = 1llu << OPT_SPEEDOMETER,
-// OB_RESERVED_1B9 = 1llu << OPT_RESERVED_1B9,
-// OB_RESERVED_1BA = 1llu << OPT_RESERVED_1BA,
-// OB_RESERVED_1BB = 1llu << OPT_RESERVED_1BB,
+// OB_DEBUG = 1llu << OPT_DEBUG,
// OB_TRACK_DIR = 1llu << OPT_TRACK_DIR,
// OB_COPY_TRACKS = 1llu << OPT_COPY_TRACKS,
// OB_MOVE_TRACKS = 1llu << OPT_MOVE_TRACKS,
@@ -216,9 +213,7 @@ typedef enum enumOptions
// | OB_CUSTOM_TT
// | OB_XPFLAGS
// | OB_SPEEDOMETER
-// | OB_RESERVED_1B9
-// | OB_RESERVED_1BA
-// | OB_RESERVED_1BB,
+// | OB_DEBUG,
//
// OB_GRP_PATCH = OB_LE_DEFINE
// | OB_LPAR
@@ -244,6 +239,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -273,6 +270,8 @@ typedef enum enumOptions
//
// OB_CMD_EXPORT = 0,
//
+// OB_CMD_DPAD = 0,
+//
// OB_CMD_DUMP = OB_GRP_PATCH
// | OB_LONG
// | OB_GRP_PATCH,
@@ -330,6 +329,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -341,6 +341,7 @@ typedef enum enumCommands
CMD_CALCULATE,
CMD_FLOAT,
CMD_EXPORT,
+ CMD_DPAD,
CMD_DUMP,
CMD_DL,
@@ -355,7 +356,7 @@ typedef enum enumCommands
CMD_ENCODE,
- CMD__N // == 24
+ CMD__N // == 26
} enumCommands;
@@ -393,6 +394,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
@@ -431,9 +433,7 @@ typedef enum enumGetOpt
GO_CUSTOM_TT,
GO_XPFLAGS,
GO_SPEEDOMETER,
- GO_RESERVED_1B9,
- GO_RESERVED_1BA,
- GO_RESERVED_1BB,
+ GO_DEBUG,
GO_TRACK_DIR,
GO_COPY_TRACKS,
GO_MOVE_TRACKS,
diff --git a/project/src/ui/ui-wmdlt.c b/project/src/ui/ui-wmdlt.c
index ed922c2..d5822de 100644
--- a/project/src/ui/ui-wmdlt.c
+++ b/project/src/ui/ui-wmdlt.c
@@ -335,6 +335,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -553,7 +562,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 == 64
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 65
};
@@ -581,6 +590,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_TEST_VERBOSE =
{ OPT_VERBOSE, false, false, false, false, false, 'v', "verbose",
0,
@@ -669,6 +684,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -703,6 +719,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -838,46 +855,47 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_MDL,
- /* 0x08c */ OPT_SCALE,
- /* 0x08d */ OPT_SHIFT,
- /* 0x08e */ OPT_XSS,
- /* 0x08f */ OPT_YSS,
- /* 0x090 */ OPT_ZSS,
- /* 0x091 */ OPT_ROT,
- /* 0x092 */ OPT_XROT,
- /* 0x093 */ OPT_YROT,
- /* 0x094 */ OPT_ZROT,
- /* 0x095 */ OPT_TRANSLATE,
- /* 0x096 */ OPT_NULL,
- /* 0x097 */ OPT_NEXT,
- /* 0x098 */ OPT_ASCALE,
- /* 0x099 */ OPT_AROT,
- /* 0x09a */ OPT_TFORM_SCRIPT,
- /* 0x09b */ OPT_ROUND,
- /* 0x09c */ OPT_NO_ECHO,
- /* 0x09d */ OPT_UTF_8,
- /* 0x09e */ OPT_NO_UTF_8,
- /* 0x09f */ OPT_FORCE,
- /* 0x0a0 */ OPT_REPAIR_MAGICS,
- /* 0x0a1 */ OPT_TINY,
- /* 0x0a2 */ OPT_OLD,
- /* 0x0a3 */ OPT_STD,
- /* 0x0a4 */ OPT_NEW,
- /* 0x0a5 */ OPT_EXTRACT,
- /* 0x0a6 */ OPT_NUMBER,
- /* 0x0a7 */ OPT_SECTIONS,
- /* 0x0a8 */ 0,0,0,0, 0,0,0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_MDL,
+ /* 0x08d */ OPT_SCALE,
+ /* 0x08e */ OPT_SHIFT,
+ /* 0x08f */ OPT_XSS,
+ /* 0x090 */ OPT_YSS,
+ /* 0x091 */ OPT_ZSS,
+ /* 0x092 */ OPT_ROT,
+ /* 0x093 */ OPT_XROT,
+ /* 0x094 */ OPT_YROT,
+ /* 0x095 */ OPT_ZROT,
+ /* 0x096 */ OPT_TRANSLATE,
+ /* 0x097 */ OPT_NULL,
+ /* 0x098 */ OPT_NEXT,
+ /* 0x099 */ OPT_ASCALE,
+ /* 0x09a */ OPT_AROT,
+ /* 0x09b */ OPT_TFORM_SCRIPT,
+ /* 0x09c */ OPT_ROUND,
+ /* 0x09d */ OPT_NO_ECHO,
+ /* 0x09e */ OPT_UTF_8,
+ /* 0x09f */ OPT_NO_UTF_8,
+ /* 0x0a0 */ OPT_FORCE,
+ /* 0x0a1 */ OPT_REPAIR_MAGICS,
+ /* 0x0a2 */ OPT_TINY,
+ /* 0x0a3 */ OPT_OLD,
+ /* 0x0a4 */ OPT_STD,
+ /* 0x0a5 */ OPT_NEW,
+ /* 0x0a6 */ OPT_EXTRACT,
+ /* 0x0a7 */ OPT_NUMBER,
+ /* 0x0a8 */ OPT_SECTIONS,
+ /* 0x0a9 */ 0,0,0,0, 0,0,0,
/* 0x0b0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,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,
@@ -906,109 +924,115 @@ static u8 option_allowed_cmd_HELP[33] = // cmd #2
1,1,1
};
-static u8 option_allowed_cmd_ARGTEST[33] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[33] = // cmd #3
+{
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[33] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1
};
-static u8 option_allowed_cmd_TEST[33] = // cmd #4
+static u8 option_allowed_cmd_TEST[33] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1
};
-static u8 option_allowed_cmd_COLORS[33] = // cmd #5
+static u8 option_allowed_cmd_COLORS[33] = // cmd #6
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_ERROR[33] = // cmd #6
+static u8 option_allowed_cmd_ERROR[33] = // cmd #7
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,1
};
-static u8 option_allowed_cmd_FILETYPE[33] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[33] = // cmd #8
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[33] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[33] = // cmd #9
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_SYMBOLS[33] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[33] = // cmd #10
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[33] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[33] = // cmd #11
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_CALCULATE[33] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[33] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_MATRIX[33] = // cmd #12
+static u8 option_allowed_cmd_MATRIX[33] = // cmd #13
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_FLOAT[33] = // cmd #13
+static u8 option_allowed_cmd_FLOAT[33] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_EXPORT[33] = // cmd #14
+static u8 option_allowed_cmd_EXPORT[33] = // cmd #15
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0
};
-static u8 option_allowed_cmd_CAT[33] = // cmd #15
+static u8 option_allowed_cmd_CAT[33] = // cmd #16
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,1,1, 0,1,1,0,0, 0,0,0,0,0,
0,1,0
};
-static u8 option_allowed_cmd_DECODE[33] = // cmd #16
+static u8 option_allowed_cmd_DECODE[33] = // cmd #17
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,1,1, 0,1,1,1,1, 1,1,1,1,1,
1,1,0
};
-static u8 option_allowed_cmd_ENCODE[33] = // cmd #17
+static u8 option_allowed_cmd_ENCODE[33] = // cmd #18
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1,
1,1,0
};
-static u8 option_allowed_cmd_STRINGS[33] = // cmd #18
+static u8 option_allowed_cmd_STRINGS[33] = // cmd #19
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,1,1, 0,1,1,0,0, 0,0,0,0,0,
0,1,0
};
-static u8 option_allowed_cmd_GEOMETRY[33] = // cmd #19
+static u8 option_allowed_cmd_GEOMETRY[33] = // cmd #20
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,1,1, 0,1,1,0,0, 0,0,0,0,0,
0,1,0
};
-static u8 option_allowed_cmd_XTEST[33] = // cmd #20
+static u8 option_allowed_cmd_XTEST[33] = // cmd #21
{
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,0,0,1,1, 0,1,1,0,0, 0,0,0,0,0,
0,1,0
@@ -1025,6 +1049,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1069,6 +1094,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1398,7 +1431,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wmdlt [option]... command [option|parameter|file]...",
"Wiimms MDL Tool : Decode raw MDL and encode text MDL files.",
0,
- 23,
+ 24,
option_tab_tool,
0
},
@@ -1441,6 +1474,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wmdlt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wmdlt.h b/project/src/ui/ui-wmdlt.h
index 5eda1ff..f3a6a45 100644
--- a/project/src/ui/ui-wmdlt.h
+++ b/project/src/ui/ui-wmdlt.h
@@ -96,6 +96,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -125,7 +126,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 64
+ OPT__N_TOTAL // == 65
} enumOptions;
@@ -210,6 +211,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -293,6 +296,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -314,7 +318,7 @@ typedef enum enumCommands
CMD_GEOMETRY,
CMD_XTEST,
- CMD__N // == 21
+ CMD__N // == 22
} enumCommands;
@@ -353,6 +357,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wpatt.c b/project/src/ui/ui-wpatt.c
index 8078f4e..72d6cc8 100644
--- a/project/src/ui/ui-wpatt.c
+++ b/project/src/ui/ui-wpatt.c
@@ -177,6 +177,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -384,7 +393,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 == 48
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 49
};
@@ -412,6 +421,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -470,6 +485,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -500,6 +516,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -617,30 +634,31 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_ROUND,
- /* 0x08c */ OPT_NO_ECHO,
- /* 0x08d */ OPT_PAT,
- /* 0x08e */ OPT_UTF_8,
- /* 0x08f */ OPT_NO_UTF_8,
- /* 0x090 */ OPT_FORCE,
- /* 0x091 */ OPT_REPAIR_MAGICS,
- /* 0x092 */ OPT_OLD,
- /* 0x093 */ OPT_STD,
- /* 0x094 */ OPT_NEW,
- /* 0x095 */ OPT_EXTRACT,
- /* 0x096 */ OPT_NUMBER,
- /* 0x097 */ OPT_SECTIONS,
- /* 0x098 */ 0,0,0,0, 0,0,0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_ROUND,
+ /* 0x08d */ OPT_NO_ECHO,
+ /* 0x08e */ OPT_PAT,
+ /* 0x08f */ OPT_UTF_8,
+ /* 0x090 */ OPT_NO_UTF_8,
+ /* 0x091 */ OPT_FORCE,
+ /* 0x092 */ OPT_REPAIR_MAGICS,
+ /* 0x093 */ OPT_OLD,
+ /* 0x094 */ OPT_STD,
+ /* 0x095 */ OPT_NEW,
+ /* 0x096 */ OPT_EXTRACT,
+ /* 0x097 */ OPT_NUMBER,
+ /* 0x098 */ OPT_SECTIONS,
+ /* 0x099 */ 0,0,0,0, 0,0,0,
/* 0x0a0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x0b0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x0c0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
@@ -668,72 +686,77 @@ static u8 option_allowed_cmd_HELP[18] = // cmd #2
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_ARGTEST[18] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[18] = // cmd #3
+{
+ 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[18] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_TEST[18] = // cmd #4
+static u8 option_allowed_cmd_TEST[18] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1
};
-static u8 option_allowed_cmd_COLORS[18] = // cmd #5
+static u8 option_allowed_cmd_COLORS[18] = // cmd #6
{
0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_ERROR[18] = // cmd #6
+static u8 option_allowed_cmd_ERROR[18] = // cmd #7
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,1
};
-static u8 option_allowed_cmd_FILETYPE[18] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[18] = // cmd #8
{
0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0
};
-static u8 option_allowed_cmd_FILEATTRIB[18] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[18] = // cmd #9
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_SYMBOLS[18] = // cmd #9
+static u8 option_allowed_cmd_SYMBOLS[18] = // cmd #10
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_FUNCTIONS[18] = // cmd #10
+static u8 option_allowed_cmd_FUNCTIONS[18] = // cmd #11
{
0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_CALCULATE[18] = // cmd #11
+static u8 option_allowed_cmd_CALCULATE[18] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_FLOAT[18] = // cmd #12
+static u8 option_allowed_cmd_FLOAT[18] = // cmd #13
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_EXPORT[18] = // cmd #13
+static u8 option_allowed_cmd_EXPORT[18] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0
};
-static u8 option_allowed_cmd_CAT[18] = // cmd #14
+static u8 option_allowed_cmd_CAT[18] = // cmd #15
{
0,0,0,1,1, 0,1,1,0,0, 0,0,0,0,0, 0,1,0
};
-static u8 option_allowed_cmd_DECODE[18] = // cmd #15
+static u8 option_allowed_cmd_DECODE[18] = // cmd #16
{
0,0,0,1,1, 0,1,1,1,1, 1,1,1,1,1, 1,1,0
};
-static u8 option_allowed_cmd_ENCODE[18] = // cmd #16
+static u8 option_allowed_cmd_ENCODE[18] = // cmd #17
{
0,0,0,0,0, 0,1,1,1,1, 1,1,1,1,1, 1,1,0
};
@@ -749,6 +772,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -792,6 +816,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -947,7 +979,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wpatt [option]... command [option|parameter|file]...",
"Wiimms PAT Tool : Decode raw PAT and encode text PAT files.",
0,
- 22,
+ 23,
option_tab_tool,
0
},
@@ -990,6 +1022,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wpatt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wpatt.h b/project/src/ui/ui-wpatt.h
index 59b7c5f..4f510dc 100644
--- a/project/src/ui/ui-wpatt.h
+++ b/project/src/ui/ui-wpatt.h
@@ -81,6 +81,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -109,7 +110,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 48
+ OPT__N_TOTAL // == 49
} enumOptions;
@@ -163,6 +164,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -221,6 +224,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -237,7 +241,7 @@ typedef enum enumCommands
CMD_DECODE,
CMD_ENCODE,
- CMD__N // == 17
+ CMD__N // == 18
} enumCommands;
@@ -276,6 +280,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wstrt.c b/project/src/ui/ui-wstrt.c
index 3796b3b..8b83b7c 100644
--- a/project/src/ui/ui-wstrt.c
+++ b/project/src/ui/ui-wstrt.c
@@ -479,6 +479,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_AT_DUMMY, false, true, false, false, false, '@', "@",
0,
""
@@ -840,7 +849,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" directory."
},
- {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 112
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 113
};
@@ -862,6 +871,12 @@ static const InfoOption_t option_cmd_VERSION_LONG =
"Print in long format. Ignored if option --sections is set."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too."
+ };
+
static const InfoOption_t option_cmd_COLORS_LONG =
{ OPT_LONG, false, false, false, false, false, 'l', "long",
0,
@@ -967,6 +982,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -1003,6 +1019,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "@", 0, 0, '@' },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
@@ -1212,95 +1229,96 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x076 v */ OPT_VERBOSE,
/* 0x077 */ 0,0,0,0, 0,0,0,0, 0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_VS_REGION,
- /* 0x08c */ OPT_BT_REGION,
- /* 0x08d */ OPT_ALL_RANKS,
- /* 0x08e */ OPT_POINTS,
- /* 0x08f */ OPT_CHEAT,
- /* 0x090 */ OPT_HTTPS,
- /* 0x091 */ OPT_DOMAIN,
- /* 0x092 */ OPT_WIIMMFI,
- /* 0x093 */ OPT_TWIIMMFI,
- /* 0x094 */ OPT_WC24,
- /* 0x095 */ OPT_WCODE,
- /* 0x096 */ OPT_ADD_WCODE,
- /* 0x097 */ OPT_PB_MODE,
- /* 0x098 */ OPT_PATCHED_BY,
- /* 0x099 */ OPT_VS,
- /* 0x09a */ OPT_VS2,
- /* 0x09b */ OPT_BT,
- /* 0x09c */ OPT_BT2,
- /* 0x09d */ OPT_CANNON,
- /* 0x09e */ OPT_MENO,
- /* 0x09f */ OPT_UTF_8,
- /* 0x0a0 */ OPT_NO_UTF_8,
- /* 0x0a1 */ OPT_FORCE,
- /* 0x0a2 */ OPT_REPAIR_MAGICS,
- /* 0x0a3 */ OPT_OLD,
- /* 0x0a4 */ OPT_STD,
- /* 0x0a5 */ OPT_NEW,
- /* 0x0a6 */ OPT_EXTRACT,
- /* 0x0a7 */ OPT_NUMBER,
- /* 0x0a8 */ OPT_CLEAN_DOL,
- /* 0x0a9 */ OPT_ADD_LECODE,
- /* 0x0aa */ OPT_ADD_CTCODE,
- /* 0x0ab */ OPT_CT_DIR,
- /* 0x0ac */ OPT_MOVE_D8,
- /* 0x0ad */ OPT_ADD_SECTION,
- /* 0x0ae */ OPT_FULL_GCH,
- /* 0x0af */ OPT_GCT_NO_SEP,
- /* 0x0b0 */ OPT_GCT_SEP,
- /* 0x0b1 */ OPT_GCT_ASM_SEP,
- /* 0x0b2 */ OPT_GCT_LIST,
- /* 0x0b3 */ OPT_GCT_MOVE,
- /* 0x0b4 */ OPT_GCT_ADDR,
- /* 0x0b5 */ OPT_GCT_SPACE,
- /* 0x0b6 */ OPT_ALLOW_USER_GCH,
- /* 0x0b7 */ OPT_CREATE_SECT,
- /* 0x0b8 */ OPT_WPF,
- /* 0x0b9 */ OPT_SECTIONS,
- /* 0x0ba */ OPT_VADDR,
- /* 0x0bb */ OPT_FADDR,
- /* 0x0bc */ OPT_SNAME,
- /* 0x0bd */ OPT_INT1,
- /* 0x0be */ OPT_INT2,
- /* 0x0bf */ OPT_INT3,
- /* 0x0c0 */ OPT_INT4,
- /* 0x0c1 */ OPT_INT5,
- /* 0x0c2 */ OPT_INT6,
- /* 0x0c3 */ OPT_INT7,
- /* 0x0c4 */ OPT_INT8,
- /* 0x0c5 */ OPT_FLOAT,
- /* 0x0c6 */ OPT_DOUBLE,
- /* 0x0c7 */ OPT_LE,
- /* 0x0c8 */ OPT_BE,
- /* 0x0c9 */ OPT_ZEROS,
- /* 0x0ca */ OPT_HEX,
- /* 0x0cb */ OPT_DEC,
- /* 0x0cc */ OPT_C_SYNTAX,
- /* 0x0cd */ OPT_ADDR,
- /* 0x0ce */ OPT_ALIGN,
- /* 0x0cf */ OPT_TRIGGER,
- /* 0x0d0 */ OPT_NO_ADDR,
- /* 0x0d1 */ OPT_NO_NUMBERS,
- /* 0x0d2 */ OPT_NO_TEXT,
- /* 0x0d3 */ OPT_FORMAT,
- /* 0x0d4 */ OPT_NO_NULL,
- /* 0x0d5 */ OPT_NARROW,
- /* 0x0d6 */ OPT_SMALL,
- /* 0x0d7 */ OPT_WIDE,
- /* 0x0d8 */ OPT_BYTES,
- /* 0x0d9 */ 0,0,0,0, 0,0,0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_VS_REGION,
+ /* 0x08d */ OPT_BT_REGION,
+ /* 0x08e */ OPT_ALL_RANKS,
+ /* 0x08f */ OPT_POINTS,
+ /* 0x090 */ OPT_CHEAT,
+ /* 0x091 */ OPT_HTTPS,
+ /* 0x092 */ OPT_DOMAIN,
+ /* 0x093 */ OPT_WIIMMFI,
+ /* 0x094 */ OPT_TWIIMMFI,
+ /* 0x095 */ OPT_WC24,
+ /* 0x096 */ OPT_WCODE,
+ /* 0x097 */ OPT_ADD_WCODE,
+ /* 0x098 */ OPT_PB_MODE,
+ /* 0x099 */ OPT_PATCHED_BY,
+ /* 0x09a */ OPT_VS,
+ /* 0x09b */ OPT_VS2,
+ /* 0x09c */ OPT_BT,
+ /* 0x09d */ OPT_BT2,
+ /* 0x09e */ OPT_CANNON,
+ /* 0x09f */ OPT_MENO,
+ /* 0x0a0 */ OPT_UTF_8,
+ /* 0x0a1 */ OPT_NO_UTF_8,
+ /* 0x0a2 */ OPT_FORCE,
+ /* 0x0a3 */ OPT_REPAIR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0x0ce */ OPT_ADDR,
+ /* 0x0cf */ OPT_ALIGN,
+ /* 0x0d0 */ OPT_TRIGGER,
+ /* 0x0d1 */ OPT_NO_ADDR,
+ /* 0x0d2 */ OPT_NO_NUMBERS,
+ /* 0x0d3 */ OPT_NO_TEXT,
+ /* 0x0d4 */ OPT_FORMAT,
+ /* 0x0d5 */ OPT_NO_NULL,
+ /* 0x0d6 */ OPT_NARROW,
+ /* 0x0d7 */ OPT_SMALL,
+ /* 0x0d8 */ OPT_WIDE,
+ /* 0x0d9 */ OPT_BYTES,
+ /* 0x0da */ 0,0,0,0, 0,0,
/* 0x0e0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x0f0 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
/* 0x100 */ 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0,
@@ -1328,133 +1346,140 @@ static u8 option_allowed_cmd_HELP[62] = // cmd #2
1,1
};
-static u8 option_allowed_cmd_ARGTEST[62] = // cmd #3
+static u8 option_allowed_cmd_CONFIG[62] = // cmd #3
+{
+ 0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0
+};
+
+static u8 option_allowed_cmd_ARGTEST[62] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1
};
-static u8 option_allowed_cmd_TEST[62] = // cmd #4
+static u8 option_allowed_cmd_TEST[62] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1
};
-static u8 option_allowed_cmd_COLORS[62] = // cmd #5
+static u8 option_allowed_cmd_COLORS[62] = // cmd #6
{
0,1,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_ERROR[62] = // cmd #6
+static u8 option_allowed_cmd_ERROR[62] = // cmd #7
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_FILETYPE[62] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[62] = // cmd #8
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_FILEATTRIB[62] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[62] = // cmd #9
{
0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_RAWDUMP[62] = // cmd #9
+static u8 option_allowed_cmd_RAWDUMP[62] = // cmd #10
{
0,0,0,0,0, 0,1,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_DUMP[62] = // cmd #10
+static u8 option_allowed_cmd_DUMP[62] = // cmd #11
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_CDUMP[62] = // cmd #11
+static u8 option_allowed_cmd_CDUMP[62] = // cmd #12
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_HEXDUMP[62] = // cmd #12
+static u8 option_allowed_cmd_HEXDUMP[62] = // cmd #13
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1
};
-static u8 option_allowed_cmd_HTTPS[62] = // cmd #13
+static u8 option_allowed_cmd_HTTPS[62] = // cmd #14
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_EXTRACT[62] = // cmd #14
+static u8 option_allowed_cmd_EXTRACT[62] = // cmd #15
{
0,0,0,0,0, 0,1,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_TRACKS[62] = // cmd #15
+static u8 option_allowed_cmd_TRACKS[62] = // cmd #16
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_ARENAS[62] = // cmd #16
+static u8 option_allowed_cmd_ARENAS[62] = // cmd #17
{
0,1,1,1,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_FILES[62] = // cmd #17
+static u8 option_allowed_cmd_FILES[62] = // cmd #18
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_FIND[62] = // cmd #18
+static u8 option_allowed_cmd_FIND[62] = // cmd #19
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_POINTS[62] = // cmd #19
+static u8 option_allowed_cmd_POINTS[62] = // cmd #20
{
0,1,1,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_ANALYZE[62] = // cmd #20
+static u8 option_allowed_cmd_ANALYZE[62] = // cmd #21
{
0,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0
};
-static u8 option_allowed_cmd_PATCH[62] = // cmd #21
+static u8 option_allowed_cmd_PATCH[62] = // cmd #22
{
0,0,0,0,0, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
@@ -1472,6 +1497,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -1534,6 +1560,14 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ &option_cmd_CONFIG_LONG,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -1850,7 +1884,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"Wiimms StaticR Tool : Manipulate the 'main.dol' and 'StaticR.rel'"
" files of Mario Kart Wii.",
0,
- 38,
+ 39,
option_tab_tool,
0
},
@@ -1893,6 +1927,21 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wstrt CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content.",
+ 0,
+ 2,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
diff --git a/project/src/ui/ui-wstrt.h b/project/src/ui/ui-wstrt.h
index 21a3b74..9c23bd8 100644
--- a/project/src/ui/ui-wstrt.h
+++ b/project/src/ui/ui-wstrt.h
@@ -125,6 +125,7 @@ typedef enum enumOptions
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_AT_DUMMY,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
@@ -173,7 +174,7 @@ typedef enum enumOptions
OPT_CLEAN_DOL,
OPT_CT_DIR,
- OPT__N_TOTAL // == 112
+ OPT__N_TOTAL // == 113
} enumOptions;
@@ -298,6 +299,8 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_LONG,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -385,6 +388,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -408,7 +412,7 @@ typedef enum enumCommands
CMD_ANALYZE,
CMD_PATCH,
- CMD__N // == 22
+ CMD__N // == 23
} enumCommands;
@@ -447,6 +451,7 @@ typedef enum enumGetOpt
GO_VERBOSE = 'v',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
diff --git a/project/src/ui/ui-wszst.c b/project/src/ui/ui-wszst.c
index b35a60c..4504bc0 100644
--- a/project/src/ui/ui-wszst.c
+++ b/project/src/ui/ui-wszst.c
@@ -689,6 +689,11 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" if *any* set keywords match."
},
+ { OPT_INSTALL, false, false, false, false, false, 0, "install",
+ 0,
+ "Manage configuration for an installation."
+ },
+
{ OPT_ANALYZE, false, true, false, false, true, 0, "analyze",
"outfile",
"Run in analyze mode and write results to the entered file."
@@ -1122,7 +1127,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
"Print in machine readable sections and parameter lines."
},
- {0,0,0,0,0,0,0,0,0,0}, // OPT__N_SPECIFIC == 133
+ {0,0,0,0,0,0,0,0,0,0}, // OPT__N_SPECIFIC == 134
//----- global options -----
@@ -1142,6 +1147,15 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
" commands included. Exit after printing."
},
+ { OPT_CONFIG, false, false, false, false, false, 0, "config",
+ "file",
+ "Define a configuration file or a directory as source. In later case,"
+ " file 'wiimms-szs-tools.conf' is searched.\n"
+ " If option is not not set, then file 'wiimms-szs-tools.conf' is"
+ " searched in different directories. Use command 'wszst CONFIG' to get"
+ " more details."
+ },
+
{ OPT_ALLOW_ALL, false, false, false, false, false, 0, "allow-all",
0,
"Usually commands accept only options with impact to the command. All"
@@ -1590,7 +1604,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
"directory",
"Define an alternative directory as autoadd library. The default is,"
" that the sub-directory called './auto-add/' of all search paths are"
- " used. Use 'wszst test -vvvv' for tests."
+ " used. Use 'wszst config -ll' for tests."
},
{ OPT_UTF_8, false, true, false, false, true, 0, "utf-8",
@@ -1691,7 +1705,7 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
{ OPT_VAR, false, false, false, false, false, 0, "var",
"varname",
"Use VARNAME as variable name or prefix on script output. The default"
- " variabe name is 'res'."
+ " value is 'res' for variables and 'res_' as prefix."
},
{ OPT_ARRAY, false, false, false, false, false, 0, "array",
@@ -1739,7 +1753,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 == 207
+ {0,0,0,0,0,0,0,0,0,0} // OPT__N_TOTAL == 209
};
@@ -1748,6 +1762,13 @@ static const InfoOption_t OptionInfo[OPT__N_TOTAL+1] =
/////////////// alternate option infos ///////////////
///////////////////////////////////////////////////////////////////////////////
+static const InfoOption_t option_grp_SCRIPT_SECTIONS =
+ { OPT_SECTIONS, false, false, false, false, false, 0, "sections",
+ 0,
+ "Dump info using configuration or section syntax. Use '--var name' as"
+ " prefix."
+ };
+
static const InfoOption_t option_grp_TEXTOUT_NO_HEADER =
{ OPT_NO_HEADER, false, false, false, false, false, 'H', "no-header",
0,
@@ -1782,6 +1803,20 @@ static const InfoOption_t option_cmd_VERSION_LONG =
" twice, append developing settings."
};
+static const InfoOption_t option_cmd_CONFIG_LONG =
+ { OPT_LONG, false, false, false, false, false, 'l', "long",
+ 0,
+ "If set, print the search list too. If set twice, print the auto-add"
+ " search list too. This option is ignored, if any script output is"
+ " enabled."
+ };
+
+static const InfoOption_t option_cmd_CONFIG_BRIEF =
+ { OPT_BRIEF, false, false, false, false, false, 'B', "brief",
+ 0,
+ "If printed as sections, exclude all comments."
+ };
+
static const InfoOption_t option_cmd_TEST_VERBOSE =
{ OPT_VERBOSE, false, false, false, false, false, 'v', "verbose",
0,
@@ -2202,6 +2237,7 @@ static const KeywordTab_t CommandTab[] =
{ CMD_VERSION, "VERSION", 0, 0 },
{ CMD_HELP, "HELP", "H", 0 },
{ CMD_HELP, "?", 0, 0 },
+ { CMD_CONFIG, "CONFIG", 0, 0 },
{ CMD_ARGTEST, "ARGTEST", 0, 0 },
{ CMD_TEST, "TEST", 0, 0 },
{ CMD_COLORS, "COLORS", 0, 0 },
@@ -2299,6 +2335,7 @@ static const struct option OptionLong[] =
{ "version", 0, 0, 'V' },
{ "help", 0, 0, 'h' },
{ "xhelp", 0, 0, GO_XHELP },
+ { "config", 1, 0, GO_CONFIG },
{ "allow-all", 0, 0, GO_ALLOW_ALL },
{ "allowall", 0, 0, GO_ALLOW_ALL },
{ "compatible", 1, 0, GO_COMPATIBLE },
@@ -2523,6 +2560,7 @@ static const struct option OptionLong[] =
{ "fmodes", 1, 0, GO_FMODES },
{ "feature-modes", 1, 0, GO_FMODES },
{ "featuremodes", 1, 0, GO_FMODES },
+ { "install", 0, 0, GO_INSTALL },
{ "analyze", 1, 0, GO_ANALYZE },
{ "analyse", 1, 0, GO_ANALYZE },
{ "analyze-mode", 1, 0, GO_ANALYZE_MODE },
@@ -2708,179 +2746,181 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/* 0x078 x */ OPT_TRANSFORM,
/* 0x079 */ 0,0,0,0, 0,0,0,
/* 0x080 */ OPT_XHELP,
- /* 0x081 */ OPT_ALLOW_ALL,
- /* 0x082 */ OPT_COMPATIBLE,
- /* 0x083 */ OPT_WIDTH,
- /* 0x084 */ OPT_MAX_WIDTH,
- /* 0x085 */ OPT_DE,
- /* 0x086 */ OPT_COLORS,
- /* 0x087 */ OPT_NO_COLORS,
- /* 0x088 */ OPT_CT_CODE,
- /* 0x089 */ OPT_LE_CODE,
- /* 0x08a */ OPT_CHDIR,
- /* 0x08b */ OPT_TOUCH,
- /* 0x08c */ OPT_AUTO,
- /* 0x08d */ OPT_SET_FLAGS,
- /* 0x08e */ OPT_SET_SCALE,
- /* 0x08f */ OPT_SET_ROT,
- /* 0x090 */ OPT_SET_X,
- /* 0x091 */ OPT_SET_Y,
- /* 0x092 */ OPT_SET_Z,
- /* 0x093 */ OPT_XCENTER,
- /* 0x094 */ OPT_YCENTER,
- /* 0x095 */ OPT_ZCENTER,
- /* 0x096 */ OPT_CENTER,
- /* 0x097 */ OPT_SCALE,
- /* 0x098 */ OPT_SHIFT,
- /* 0x099 */ OPT_XSS,
- /* 0x09a */ OPT_YSS,
- /* 0x09b */ OPT_ZSS,
- /* 0x09c */ OPT_ROT,
- /* 0x09d */ OPT_XROT,
- /* 0x09e */ OPT_YROT,
- /* 0x09f */ OPT_ZROT,
- /* 0x0a0 */ OPT_YPOS,
- /* 0x0a1 */ OPT_TRANSLATE,
- /* 0x0a2 */ OPT_NULL,
- /* 0x0a3 */ OPT_NEXT,
- /* 0x0a4 */ OPT_ASCALE,
- /* 0x0a5 */ OPT_AROT,
- /* 0x0a6 */ OPT_TFORM_SCRIPT,
- /* 0x0a7 */ OPT_MINIMAP,
- /* 0x0a8 */ OPT_RM_GOBJ,
- /* 0x0a9 */ OPT_BATTLE,
- /* 0x0aa */ OPT_EXPORT_FLAGS,
- /* 0x0ab */ OPT_ROUTE_OPTIONS,
- /* 0x0ac */ OPT_WIM0,
- /* 0x0ad */ OPT_SLOT,
- /* 0x0ae */ OPT_LOAD_KCL,
- /* 0x0af */ OPT_KCL,
- /* 0x0b0 */ OPT_KCL_FLAG,
- /* 0x0b1 */ OPT_KCL_SCRIPT,
- /* 0x0b2 */ OPT_TRI_AREA,
- /* 0x0b3 */ OPT_TRI_HEIGHT,
- /* 0x0b4 */ OPT_FLAG_FILE,
- /* 0x0b5 */ OPT_XTRIDATA,
- /* 0x0b6 */ OPT_KMP,
- /* 0x0b7 */ OPT_SPEED_MOD,
- /* 0x0b8 */ OPT_KTPT2,
- /* 0x0b9 */ OPT_TFORM_KMP,
- /* 0x0ba */ OPT_REPAIR_XPF,
- /* 0x0bb */ OPT_GAMEMODES,
- /* 0x0bc */ OPT_MDL,
- /* 0x0bd */ OPT_PAT,
- /* 0x0be */ OPT_PATCH_FILE,
- /* 0x0bf */ OPT_KMG_LIMIT,
- /* 0x0c0 */ OPT_KMG_COPY,
- /* 0x0c1 */ OPT_LT_CLEAR,
- /* 0x0c2 */ OPT_LT_ONLINE,
- /* 0x0c3 */ OPT_LT_N_PLAYERS,
- /* 0x0c4 */ OPT_LT_COND_BIT,
- /* 0x0c5 */ OPT_LT_GAME_MODE,
- /* 0x0c6 */ OPT_LT_ENGINE,
- /* 0x0c7 */ OPT_LT_RANDOM,
- /* 0x0c8 */ OPT_LEX_PURGE,
- /* 0x0c9 */ OPT_LEX_FEATURES,
- /* 0x0ca */ OPT_LEX_RM_FEAT,
- /* 0x0cb */ OPT_LOAD_BMG,
- /* 0x0cc */ OPT_PATCH_BMG,
- /* 0x0cd */ OPT_MACRO_BMG,
- /* 0x0ce */ OPT_FILTER_BMG,
- /* 0x0cf */ OPT_CACHE,
- /* 0x0d0 */ OPT_CNAME,
- /* 0x0d1 */ OPT_ID,
- /* 0x0d2 */ OPT_BASE64,
- /* 0x0d3 */ OPT_DB64,
- /* 0x0d4 */ OPT_CODING,
- /* 0x0d5 */ OPT_VERIFY,
- /* 0x0d6 */ OPT_ROUND,
- /* 0x0d7 */ OPT_PIPE,
- /* 0x0d8 */ OPT_DELTA,
- /* 0x0d9 */ OPT_DIFF,
- /* 0x0da */ OPT_EPSILON,
- /* 0x0db */ OPT_BMG_ENDIAN,
- /* 0x0dc */ OPT_BMG_ENCODING,
- /* 0x0dd */ OPT_BMG_INF_SIZE,
- /* 0x0de */ OPT_BMG_MID,
- /* 0x0df */ OPT_FORCE_ATTRIB,
- /* 0x0e0 */ OPT_DEF_ATTRIB,
- /* 0x0e1 */ OPT_NO_ATTRIB,
- /* 0x0e2 */ OPT_X_ESCAPES,
- /* 0x0e3 */ OPT_OLD_ESCAPES,
- /* 0x0e4 */ OPT_NO_BMG_COLORS,
- /* 0x0e5 */ OPT_BMG_COLORS,
- /* 0x0e6 */ OPT_NO_BMG_INLINE,
- /* 0x0e7 */ OPT_AUTOADD_PATH,
- /* 0x0e8 */ OPT_STRIP,
- /* 0x0e9 */ OPT_UTF_8,
- /* 0x0ea */ OPT_NO_UTF_8,
- /* 0x0eb */ OPT_FORCE,
- /* 0x0ec */ OPT_REPAIR_MAGICS,
- /* 0x0ed */ OPT_TINY,
- /* 0x0ee */ OPT_YAZ0,
- /* 0x0ef */ OPT_YAZ1,
- /* 0x0f0 */ OPT_XYZ,
- /* 0x0f1 */ OPT_BZ,
- /* 0x0f2 */ OPT_SH,
- /* 0x0f3 */ OPT_BASH,
- /* 0x0f4 */ OPT_JSON,
- /* 0x0f5 */ OPT_PHP,
- /* 0x0f6 */ OPT_MAKEDOC,
- /* 0x0f7 */ OPT_VAR,
- /* 0x0f8 */ OPT_ARRAY,
- /* 0x0f9 */ OPT_AVAR,
- /* 0x0fa */ OPT_CASE,
- /* 0x0fb */ OPT_PMODES,
- /* 0x0fc */ OPT_FMODES,
- /* 0x0fd */ OPT_ANALYZE,
- /* 0x0fe */ OPT_ANALYZE_MODE,
- /* 0x0ff */ OPT_OLD,
- /* 0x100 */ OPT_STD,
- /* 0x101 */ OPT_NEW,
- /* 0x102 */ OPT_EXTRACT,
- /* 0x103 */ OPT_NUMBER,
- /* 0x104 */ OPT_REMOVE_SRC,
- /* 0x105 */ OPT_IGNORE_SETUP,
- /* 0x106 */ OPT_PURGE,
- /* 0x107 */ OPT_ALIGN_U8,
- /* 0x108 */ OPT_ALIGN_PACK,
- /* 0x109 */ OPT_ALIGN_BRRES,
- /* 0x10a */ OPT_ALIGN_BREFF,
- /* 0x10b */ OPT_ALIGN_BREFT,
- /* 0x10c */ OPT_ALIGN,
- /* 0x10d */ OPT_ENCODE_ALL,
- /* 0x10e */ OPT_ENCODE_IMG,
- /* 0x10f */ OPT_NO_ENCODE,
- /* 0x110 */ OPT_NO_RECURSE,
- /* 0x111 */ OPT_AUTO_ADD,
- /* 0x112 */ OPT_NO_ECHO,
- /* 0x113 */ OPT_PT_DIR,
- /* 0x114 */ OPT_RM_AIPARAM,
- /* 0x115 */ OPT_U8,
- /* 0x116 */ OPT_SZS,
- /* 0x117 */ OPT_WU8,
- /* 0x118 */ OPT_XWU8,
- /* 0x119 */ OPT_WBZ,
- /* 0x11a */ OPT_PACK,
- /* 0x11b */ OPT_BRRES,
- /* 0x11c */ OPT_BREFF,
- /* 0x11d */ OPT_BREFT,
- /* 0x11e */ OPT_NO_COMPRESS,
- /* 0x11f */ OPT_FAST,
- /* 0x120 */ OPT_LINKS,
- /* 0x121 */ OPT_BASEDIR,
- /* 0x122 */ OPT_DECODE,
- /* 0x123 */ OPT_MIPMAPS,
- /* 0x124 */ OPT_NO_MIPMAPS,
- /* 0x125 */ OPT_N_MIPMAPS,
- /* 0x126 */ OPT_MAX_MIPMAPS,
- /* 0x127 */ OPT_MIPMAP_SIZE,
- /* 0x128 */ OPT_FAST_MIPMAPS,
- /* 0x129 */ OPT_CMPR_DEFAULT,
- /* 0x12a */ OPT_CUT,
- /* 0x12b */ OPT_RAW,
- /* 0x12c */ OPT_SECTIONS,
- /* 0x12d */ 0,0,0,0, 0,0,0,0, 0,
+ /* 0x081 */ OPT_CONFIG,
+ /* 0x082 */ OPT_ALLOW_ALL,
+ /* 0x083 */ OPT_COMPATIBLE,
+ /* 0x084 */ OPT_WIDTH,
+ /* 0x085 */ OPT_MAX_WIDTH,
+ /* 0x086 */ OPT_DE,
+ /* 0x087 */ OPT_COLORS,
+ /* 0x088 */ OPT_NO_COLORS,
+ /* 0x089 */ OPT_CT_CODE,
+ /* 0x08a */ OPT_LE_CODE,
+ /* 0x08b */ OPT_CHDIR,
+ /* 0x08c */ OPT_TOUCH,
+ /* 0x08d */ OPT_AUTO,
+ /* 0x08e */ OPT_SET_FLAGS,
+ /* 0x08f */ OPT_SET_SCALE,
+ /* 0x090 */ OPT_SET_ROT,
+ /* 0x091 */ OPT_SET_X,
+ /* 0x092 */ OPT_SET_Y,
+ /* 0x093 */ OPT_SET_Z,
+ /* 0x094 */ OPT_XCENTER,
+ /* 0x095 */ OPT_YCENTER,
+ /* 0x096 */ OPT_ZCENTER,
+ /* 0x097 */ OPT_CENTER,
+ /* 0x098 */ OPT_SCALE,
+ /* 0x099 */ OPT_SHIFT,
+ /* 0x09a */ OPT_XSS,
+ /* 0x09b */ OPT_YSS,
+ /* 0x09c */ OPT_ZSS,
+ /* 0x09d */ OPT_ROT,
+ /* 0x09e */ OPT_XROT,
+ /* 0x09f */ OPT_YROT,
+ /* 0x0a0 */ OPT_ZROT,
+ /* 0x0a1 */ OPT_YPOS,
+ /* 0x0a2 */ OPT_TRANSLATE,
+ /* 0x0a3 */ OPT_NULL,
+ /* 0x0a4 */ OPT_NEXT,
+ /* 0x0a5 */ OPT_ASCALE,
+ /* 0x0a6 */ OPT_AROT,
+ /* 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OC,
+ /* 0x0f8 */ OPT_VAR,
+ /* 0x0f9 */ OPT_ARRAY,
+ /* 0x0fa */ OPT_AVAR,
+ /* 0x0fb */ OPT_CASE,
+ /* 0x0fc */ OPT_PMODES,
+ /* 0x0fd */ OPT_FMODES,
+ /* 0x0fe */ OPT_INSTALL,
+ /* 0x0ff */ OPT_ANALYZE,
+ /* 0x100 */ OPT_ANALYZE_MODE,
+ /* 0x101 */ OPT_OLD,
+ /* 0x102 */ OPT_STD,
+ /* 0x103 */ OPT_NEW,
+ /* 0x104 */ OPT_EXTRACT,
+ /* 0x105 */ OPT_NUMBER,
+ /* 0x106 */ OPT_REMOVE_SRC,
+ /* 0x107 */ OPT_IGNORE_SETUP,
+ /* 0x108 */ OPT_PURGE,
+ /* 0x109 */ OPT_ALIGN_U8,
+ /* 0x10a */ OPT_ALIGN_PACK,
+ /* 0x10b */ OPT_ALIGN_BRRES,
+ /* 0x10c */ OPT_ALIGN_BREFF,
+ /* 0x10d */ OPT_ALIGN_BREFT,
+ /* 0x10e */ OPT_ALIGN,
+ /* 0x10f */ OPT_ENCODE_ALL,
+ /* 0x110 */ OPT_ENCODE_IMG,
+ /* 0x111 */ OPT_NO_ENCODE,
+ /* 0x112 */ OPT_NO_RECURSE,
+ /* 0x113 */ OPT_AUTO_ADD,
+ /* 0x114 */ OPT_NO_ECHO,
+ /* 0x115 */ OPT_PT_DIR,
+ /* 0x116 */ OPT_RM_AIPARAM,
+ /* 0x117 */ OPT_U8,
+ /* 0x118 */ OPT_SZS,
+ /* 0x119 */ OPT_WU8,
+ /* 0x11a */ OPT_XWU8,
+ /* 0x11b */ OPT_WBZ,
+ /* 0x11c */ OPT_PACK,
+ /* 0x11d */ OPT_BRRES,
+ /* 0x11e */ OPT_BREFF,
+ /* 0x11f */ OPT_BREFT,
+ /* 0x120 */ OPT_NO_COMPRESS,
+ /* 0x121 */ OPT_FAST,
+ /* 0x122 */ OPT_LINKS,
+ /* 0x123 */ OPT_BASEDIR,
+ /* 0x124 */ OPT_DECODE,
+ /* 0x125 */ OPT_MIPMAPS,
+ /* 0x126 */ OPT_NO_MIPMAPS,
+ /* 0x127 */ OPT_N_MIPMAPS,
+ /* 0x128 */ OPT_MAX_MIPMAPS,
+ /* 0x129 */ OPT_MIPMAP_SIZE,
+ /* 0x12a */ OPT_FAST_MIPMAPS,
+ /* 0x12b */ OPT_CMPR_DEFAULT,
+ /* 0x12c */ OPT_CUT,
+ /* 0x12d */ OPT_RAW,
+ /* 0x12e */ OPT_SECTIONS,
+ /* 0x12f */ 0,0,0,0, 0,0,0,
};
//
@@ -2888,670 +2928,679 @@ static const OptionIndex_t OptionIndex[UIOPT_INDEX_SIZE] =
/////////////// opt_allowed_cmd_* ///////////////
///////////////////////////////////////////////////////////////////////////////
-static u8 option_allowed_cmd_VERSION[133] = // cmd #1
+static u8 option_allowed_cmd_VERSION[134] = // cmd #1
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,1
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_HELP[133] = // cmd #2
+static u8 option_allowed_cmd_HELP[134] = // cmd #2
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1
+};
+
+static u8 option_allowed_cmd_CONFIG[134] = // cmd #3
+{
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_ARGTEST[133] = // cmd #3
+static u8 option_allowed_cmd_ARGTEST[134] = // cmd #4
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1
};
-static u8 option_allowed_cmd_TEST[133] = // cmd #4
+static u8 option_allowed_cmd_TEST[134] = // cmd #5
{
1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,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0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_FILETYPE[133] = // cmd #7
+static u8 option_allowed_cmd_FILETYPE[134] = // cmd #8
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_FILEATTRIB[133] = // cmd #8
+static u8 option_allowed_cmd_FILEATTRIB[134] = // cmd #9
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_BRSUB[133] = // cmd #9
+static u8 option_allowed_cmd_BRSUB[134] = // cmd #10
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0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0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_CALCULATE[133] = // cmd #12
+static u8 option_allowed_cmd_CALCULATE[134] = // cmd #13
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_MATRIX[133] = // cmd #13
+static u8 option_allowed_cmd_MATRIX[134] = // cmd #14
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_FLOAT[133] = // cmd #14
+static u8 option_allowed_cmd_FLOAT[134] = // cmd #15
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0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0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_AUTOADD[133] = // cmd #17
+static u8 option_allowed_cmd_AUTOADD[134] = // cmd #18
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0, 1,0,0,1,0, 1,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 0,1,0,0,1, 0,1,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_TRACKS[133] = // cmd #18
+static u8 option_allowed_cmd_TRACKS[134] = // cmd #19
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,1,0,0, 1,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 1,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0
};
-static u8 option_allowed_cmd_SCANCACHE[133] = // cmd #19
+static u8 option_allowed_cmd_SCANCACHE[134] = // cmd #20
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0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, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_RECODE[133] = // cmd #22
+static u8 option_allowed_cmd_RECODE[134] = // cmd #23
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_SUBFILE[133] = // cmd #23
+static u8 option_allowed_cmd_SUBFILE[134] = // cmd #24
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 1,1,0,1,1, 1,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 1,1,1,0,1, 1,1,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_TESTNORM[133] = // cmd #24
+static u8 option_allowed_cmd_TESTNORM[134] = // cmd #25
{
0,0,0,0,0, 0,0,0,0,0, 0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1,1, 0,1,0,0
};
-static u8 option_allowed_cmd_SHA1[133] = // cmd #40
+static u8 option_allowed_cmd_SHA1[134] = // cmd #41
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,1, 1,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,1,0,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,1,1,0,0,
- 0,0,1,1,1, 1,1,1,1,0, 1,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0,
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,1,1,0,
+ 0,0,0,1,1, 1,1,1,1,1, 0,1,0,0
};
-static u8 option_allowed_cmd_ANALYZE[133] = // cmd #41
+static u8 option_allowed_cmd_ANALYZE[134] = // cmd #42
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_FEATURES[133] = // cmd #42
+static u8 option_allowed_cmd_FEATURES[134] = // cmd #43
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0, 0,0,1,1,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0, 0,0,0,1,1, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1
};
-static u8 option_allowed_cmd_DISTRIBUTION[133] = // cmd #43
+static u8 option_allowed_cmd_DISTRIBUTION[134] = // cmd #44
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,1,0,0,0, 0,0,0,0,0, 0,1,1,0,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,1,1,0,0,
- 0,0,1,1,1, 1,1,1,1,0, 1,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,1,1,0,
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,1,1,0,
+ 0,0,0,1,1, 1,1,1,1,1, 0,1,0,0
};
-static u8 option_allowed_cmd_DIFF[133] = // cmd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1,1, 0,1,0,0
};
-static u8 option_allowed_cmd_SLOTS[133] = // cmd #46
+static u8 option_allowed_cmd_SLOTS[134] = // cmd #47
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,0, 1,0,0,1,1, 1,0,0,0,0, 0,0,0,0,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,1,0,1,
- 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,0,0, 0,0,1,0,0,
- 0,0,1,1,1, 1,1,1,1,0, 1,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 1,1,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,0,
+ 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,0, 0,0,0,1,0,
+ 0,0,0,1,1, 1,1,1,1,1, 0,1,0,0
};
-static u8 option_allowed_cmd_STGI[133] = // cmd #47
+static u8 option_allowed_cmd_STGI[134] = // cmd #48
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_ISARENA[133] = // cmd #48
+static u8 option_allowed_cmd_ISARENA[134] = // cmd #49
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_NORMALIZE[133] = // cmd #49
+static u8 option_allowed_cmd_NORMALIZE[134] = // cmd #50
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 1,1,1,1,1, 1,1,1,1,1, 1,1,1,1,1,
1,1,1,1,0, 1,0,0,1,1, 1,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 1,1,1,1,1, 1,1,0,0,1,
- 1,1,1,1,1, 0,0,0,0,1, 0,0,1,1,1, 1,1,1,1,0, 0,0,0,0,0, 1,1,1,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 1,1,1,1,1, 1,1,1,0,0,
+ 1,1,1,1,1, 1,0,0,0,0, 1,0,0,1,1, 1,1,1,1,1, 0,0,0,0,0, 0,1,1,1,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_PATCH[133] = // cmd #50
+static u8 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 0,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_LEX[133] = // cmd #70
+static u8 option_allowed_cmd_LEX[134] = // cmd #71
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,1,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_INFO[133] = // cmd #71
+static u8 option_allowed_cmd_INFO[134] = // cmd #72
{
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,1,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
-static u8 option_allowed_cmd_GHOST[133] = // cmd #72
+static u8 option_allowed_cmd_G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0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,1, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,1,1,1,0, 1,0,0,0,0, 0,0,0,0,0,
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,1,1,1, 0,1,0,0,0, 0,0,0,0,0,
0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0,0,
- 0,0,0,0,0, 0,0,0,0,0, 0,0,0
+ 0,0,0,0,0, 0,0,0,0,0, 0,0,0,0
};
@@ -3565,6 +3614,7 @@ static const InfoOption_t * option_tab_tool[] =
OptionInfo + OPT_VERSION,
OptionInfo + OPT_HELP,
OptionInfo + OPT_XHELP,
+ OptionInfo + OPT_CONFIG,
OptionInfo + OPT_ALLOW_ALL,
OptionInfo + OPT_COMPATIBLE,
OptionInfo + OPT_WIDTH,
@@ -3654,6 +3704,30 @@ static const InfoOption_t * option_tab_cmd_HELP[] =
0
};
+static const InfoOption_t * option_tab_cmd_CONFIG[] =
+{
+ OptionInfo + OPT_CONFIG,
+ OptionInfo + OPT_INSTALL,
+ OptionInfo + OPT_AUTOADD_PATH,
+ &option_cmd_CONFIG_LONG,
+
+ OptionInfo + OPT_NONE, // separator
+
+ &option_grp_SCRIPT_SECTIONS,
+ OptionInfo + OPT_SH,
+ OptionInfo + OPT_BASH,
+ OptionInfo + OPT_JSON,
+ OptionInfo + OPT_PHP,
+ OptionInfo + OPT_MAKEDOC,
+ OptionInfo + OPT_VAR,
+ OptionInfo + OPT_ARRAY,
+ OptionInfo + OPT_AVAR,
+ OptionInfo + OPT_CASE,
+ &option_cmd_CONFIG_BRIEF,
+
+ 0
+};
+
static const InfoOption_t * option_tab_cmd_ARGTEST[] =
{
@@ -4804,6 +4878,7 @@ static const InfoOption_t * option_tab_cmd_ANALYZE[] =
OptionInfo + OPT_NONE, // separator
+ &option_grp_SCRIPT_SECTIONS,
OptionInfo + OPT_SH,
OptionInfo + OPT_BASH,
OptionInfo + OPT_JSON,
@@ -4831,6 +4906,7 @@ static const InfoOption_t * option_tab_cmd_FEATURES[] =
OptionInfo + OPT_NONE, // separator
+ &option_grp_SCRIPT_SECTIONS,
OptionInfo + OPT_SH,
OptionInfo + OPT_BASH,
OptionInfo + OPT_JSON,
@@ -6664,6 +6740,7 @@ static const InfoOption_t * option_tab_cmd_GHOST[] =
OptionInfo + OPT_NONE, // separator
+ &option_grp_SCRIPT_SECTIONS,
OptionInfo + OPT_SH,
OptionInfo + OPT_BASH,
OptionInfo + OPT_JSON,
@@ -6728,10 +6805,10 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
0,
"wszst [option]... command [option|parameter|file]...",
"Wiimms SZS Tool : List, compare, (de-)compress, extract and create"
- " SZS, U8, PACK, BRRES, BREFF, BREFT and RARC archives. It is also a"
- " wrapper to all other tools.",
+ " SZS, U8, PACK, BRRES, BREFF and BREFT archives. Additonally, RARC"
+ " archive can be extracted. It is also a wrapper to all other tools.",
0,
- 65,
+ 66,
option_tab_tool,
0
},
@@ -6774,6 +6851,22 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
option_allowed_cmd_HELP
},
+ { CMD_CONFIG,
+ false,
+ false,
+ false,
+ "CONFIG",
+ 0,
+ "wszst CONFIG [options]...",
+ "Show all information about the search for the configuration file and"
+ " its content. The command can also export the settings for scripts or"
+ " can create or update configuration files.",
+ 0,
+ 15,
+ option_tab_cmd_CONFIG,
+ option_allowed_cmd_CONFIG
+ },
+
{ CMD_ARGTEST,
false,
false,
@@ -7394,7 +7487,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wszst ANALYZE [source]...",
"Analyse track files and print results in machine readable format.",
0,
- 14,
+ 15,
option_tab_cmd_ANALYZE,
option_allowed_cmd_ANALYZE
},
@@ -7408,7 +7501,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wszst FEATURES [source]...",
"Analyse track files and a feature list in machine readable format.",
0,
- 17,
+ 18,
option_tab_cmd_FEATURES,
option_allowed_cmd_FEATURES
},
@@ -7683,9 +7776,9 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"CREATE",
"C",
"wszst CREATE [source_dir]...",
- "Create SZS, U8, PACK, BRRES, BREFF, BREFT or RARC archives by adding"
- " all not hidden files of the directory structure. Create and/or"
- " encode sub files if necessary. The default destination is '%P/%N%T'.",
+ "Create SZS, U8, PACK, BRRES, BREFF or BREFT archives by adding all"
+ " not hidden files of the directory structure. Create and/or encode"
+ " sub files if necessary. The default destination is '%P/%N%T'.",
0,
95,
option_tab_cmd_CREATE,
@@ -7933,7 +8026,7 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"wszst GHOST [source]...",
"Analyse each file and print a summary about the ghost data.",
0,
- 13,
+ 14,
option_tab_cmd_GHOST,
option_allowed_cmd_GHOST
},
@@ -7945,8 +8038,8 @@ static const InfoCommand_t CommandInfo[CMD__N+1] =
"YAZDUMP",
"YD",
"wszst YAZDUMP [szs]...",
- "Analyze YAZ compression print a dump to stdout. Ignore files without"
- " YAZ compression.",
+ "Analyze YAZ compression and print a dump to stdout. Ignore files"
+ " without YAZ compression.",
0,
8,
option_tab_cmd_YAZDUMP,
diff --git a/project/src/ui/ui-wszst.h b/project/src/ui/ui-wszst.h
index fabeee1..bcbc993 100644
--- a/project/src/ui/ui-wszst.h
+++ b/project/src/ui/ui-wszst.h
@@ -129,6 +129,7 @@ typedef enum enumOptions
OPT_STRIP,
OPT_PMODES,
OPT_FMODES,
+ OPT_INSTALL,
OPT_ANALYZE,
OPT_ANALYZE_MODE,
OPT_SOURCE,
@@ -189,13 +190,14 @@ typedef enum enumOptions
OPT_RAW,
OPT_SECTIONS,
- OPT__N_SPECIFIC, // == 133
+ OPT__N_SPECIFIC, // == 134
//----- global options -----
OPT_VERSION,
OPT_HELP,
OPT_XHELP,
+ OPT_CONFIG,
OPT_ALLOW_ALL,
OPT_COMPATIBLE,
OPT_WIDTH,
@@ -268,7 +270,7 @@ typedef enum enumOptions
OPT_NEW,
OPT_EXTRACT,
- OPT__N_TOTAL // == 207
+ OPT__N_TOTAL // == 209
} enumOptions;
@@ -356,6 +358,7 @@ typedef enum enumOptions
// OB_STRIP = 1llu << OPT_STRIP,
// OB_PMODES = 1llu << OPT_PMODES,
// OB_FMODES = 1llu << OPT_FMODES,
+// OB_INSTALL = 1llu << OPT_INSTALL,
// OB_ANALYZE = 1llu << OPT_ANALYZE,
// OB_ANALYZE_MODE = 1llu << OPT_ANALYZE_MODE,
// OB_SOURCE = 1llu << OPT_SOURCE,
@@ -471,7 +474,7 @@ typedef enum enumOptions
// | OB_XWU8
// | OB_WBZ,
//
-// OB_GRP_SCRIPT = 0,
+// OB_GRP_SCRIPT = OB_SECTIONS,
//
// OB_GRP_ALIGN = OB_ALIGN_U8
// | OB_ALIGN_PACK
@@ -558,6 +561,11 @@ typedef enum enumOptions
//
// OB_CMD_HELP = ~(u64)0,
//
+// OB_CMD_CONFIG = OB_INSTALL
+// | OB_LONG
+// | OB_GRP_SCRIPT
+// | OB_BRIEF,
+//
// OB_CMD_ARGTEST = ~(u64)0,
//
// OB_CMD_TEST = ~(u64)0,
@@ -925,6 +933,7 @@ typedef enum enumCommands
CMD_VERSION,
CMD_HELP,
+ CMD_CONFIG,
CMD_ARGTEST,
CMD_TEST,
CMD_COLORS,
@@ -1006,7 +1015,7 @@ typedef enum enumCommands
CMD_VEHICLE,
- CMD__N // == 75
+ CMD__N // == 76
} enumCommands;
@@ -1056,6 +1065,7 @@ typedef enum enumGetOpt
GO_TRANSFORM = 'x',
GO_XHELP = 0x80,
+ GO_CONFIG,
GO_ALLOW_ALL,
GO_COMPATIBLE,
GO_WIDTH,
@@ -1180,6 +1190,7 @@ typedef enum enumGetOpt
GO_CASE,
GO_PMODES,
GO_FMODES,
+ GO_INSTALL,
GO_ANALYZE,
GO_ANALYZE_MODE,
GO_OLD,
diff --git a/project/src/ui/ui.def b/project/src/ui/ui.def
index 722bdb5..0c8671f 100644
--- a/project/src/ui/ui.def
+++ b/project/src/ui/ui.def
@@ -7,8 +7,8 @@
#:def_tool( "wszst", \
"wszst [option]... command [option|parameter|@file]...", \
"Wiimms SZS Tool : List, compare, (de-)compress, extract and create" \
- " SZS, U8, PACK, BRRES, BREFF, BREFT and RARC archives. It is also a" \
- " wrapper to all other tools." )
+ " SZS, U8, PACK, BRRES, BREFF and BREFT archives. Additonally, RARC" \
+ " archive can be extracted. It is also a wrapper to all other tools." )
#:def_cmd( "VERSION", "VERSION", \
"wszst VERSION [ignored]...", \
@@ -29,6 +29,12 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wszst CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content. The command can also export the settings for scripts or" \
+ " can create or update configuration files." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wszst ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -366,10 +372,9 @@
#:def_cmd( "CREATE", "CREATE|C", \
"wszst CREATE [source_dir]...", \
- "Create SZS, U8, PACK, BRRES, BREFF, BREFT or RARC archives by adding" \
- " all not hidden files of the directory structure. Create and/or" \
- " encode sub files if necessary. The default destination is" \
- " @'%P/%N%T'@." )
+ "Create SZS, U8, PACK, BRRES, BREFF or BREFT archives by adding all" \
+ " not hidden files of the directory structure. Create and/or encode" \
+ " sub files if necessary. The default destination is @'%P/%N%T'@." )
#:def_cmd( "UPDATE", "UPDATE|U", \
"wszst UPDATE [source]... [--source=] [--dest=]", \
@@ -465,8 +470,8 @@
#:def_cmd( "YAZDUMP", "YAZDUMP|YD", \
"wszst YAZDUMP [szs]...", \
- "Analyze YAZ compression print a dump to stdout. Ignore files without" \
- " YAZ compression." )
+ "Analyze YAZ compression and print a dump to stdout. Ignore files" \
+ " without YAZ compression." )
#:def_opt( "VERSION", "V|version", "G", \
"", \
@@ -481,6 +486,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -1379,7 +1392,7 @@
"directory", \
"Define an alternative directory as autoadd library. The default is," \
" that the sub-directory called './auto-add/' of all search paths are" \
- " used. Use {wszst test -vvvv} for tests." )
+ " used. Use {wszst config -ll} for tests." )
#:def_opt( "TRANSFORM", "x|transform", "CP", \
"list", \
@@ -1485,7 +1498,7 @@
#:def_opt( "VAR", "var", "GP", \
"varname", \
"Use @VARNAME@ as variable name or prefix on script output. The" \
- " default variabe name is 'res'." )
+ " default value is 'res' for variables and 'res_' as prefix." )
#:def_opt( "ARRAY", "array", "G", \
"", \
@@ -1504,6 +1517,10 @@
" @UPPER@ are set, then the lower/upper case of the variable names is" \
" adjusted accordingly." )
+#:def_opt( "INSTALL", "install", "C", \
+ "", \
+ "Manage configuration for an installation." )
+
#:def_opt( "SOURCE", "s|source|src", "CP", \
"path", \
"Define a secondary source path (directory/file).\n" \
@@ -1883,6 +1900,69 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "INSTALL", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "AUTOADD_PATH", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too. If set twice, print the auto-add" \
+ " search list too. This option is ignored, if any script output is" \
+ " enabled." )
+
+#:def_cmd_opt( "CONFIG", "SECTIONS", \
+ "", \
+ "Dump info using configuration or section syntax. Use {--var name} as" \
+ " prefix." )
+
+#:def_cmd_opt( "CONFIG", "SH", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "BASH", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "JSON", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "PHP", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "MAKEDOC", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "VAR", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "ARRAY", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "AVAR", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "CASE", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "BRIEF", \
+ "", \
+ "If printed as sections, exclude all comments." )
+
#:def_cmd_opt( "TEST", "VERBOSE", \
"", \
"Print the matrices of transformations." )
@@ -5011,6 +5091,11 @@
"", \
"Suppress logging of input and output files." )
+#:def_cmd_opt( "ANALYZE", "SECTIONS", \
+ "", \
+ "Dump info using configuration or section syntax. Use {--var name} as" \
+ " prefix." )
+
#:def_cmd_opt( "ANALYZE", "SH", \
"", \
"" )
@@ -5072,6 +5157,11 @@
"", \
"Suppress logging of input and output files." )
+#:def_cmd_opt( "FEATURES", "SECTIONS", \
+ "", \
+ "Dump info using configuration or section syntax. Use {--var name} as" \
+ " prefix." )
+
#:def_cmd_opt( "FEATURES", "SH", \
"", \
"" )
@@ -10947,6 +11037,11 @@
"", \
"Suppress output of the printed filename." )
+#:def_cmd_opt( "GHOST", "SECTIONS", \
+ "", \
+ "Dump info using configuration or section syntax. Use {--var name} as" \
+ " prefix." )
+
#:def_cmd_opt( "GHOST", "SH", \
"", \
"" )
@@ -11081,6 +11176,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wbmgt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wbmgt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -11210,6 +11310,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -11591,6 +11699,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )
@@ -12317,6 +12433,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wctct CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wctct ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -12436,6 +12557,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -12902,6 +13031,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )
@@ -13675,6 +13812,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wimgt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wimgt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -13763,6 +13905,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -14087,6 +14237,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )
@@ -14541,6 +14699,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wkclt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wkclt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -14728,6 +14891,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -15187,6 +15358,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "TEST", "VERBOSE", \
"", \
"Print the matrices of transformations." )
@@ -16865,6 +17044,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wkmpt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wkmpt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -17052,6 +17236,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -17720,6 +17912,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "TEST", "VERBOSE", \
"", \
"Print the matrices of transformations." )
@@ -18951,6 +19151,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wlect CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wlect ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -19087,6 +19292,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -19341,9 +19554,15 @@
#:def_opt( "SPEEDOMETER", "speedometer", "CO", \
"[=mode]", \
"Enable or disable the speedometer. Mode is one of @OFF@, @AUTO@" \
- " (default, don't change setting), @ON@ (enable it for Wii and WiiU" \
- " only; default, if option is used without parameter) or @FORCE@" \
- " (enable it for Wii, Wii U and for Dolphin)." )
+ " (default, don't change setting), @ON@ (default, if option is used" \
+ " without parameter) or @FRACTION@ (=@1DIGIT@), @2DIGITS@ and" \
+ " @3DIGITS@." )
+
+#:def_opt( "DEBUG", "debug", "CP", \
+ "mode", \
+ "Enable or disable the debug output while racing. Mode is one of" \
+ " @OFF@, @AUTO@ (default, don't change setting), @USER@ or @100@ to" \
+ " @199@ for predefined setups." )
#:def_opt( "TRACK_DIR", "track-dir|trackdir", "CP", \
"directory", \
@@ -19512,6 +19731,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )
@@ -19621,6 +19848,10 @@
"", \
"" )
+#:def_cmd_opt( "DUMP", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "DUMP", "LONG", \
"", \
"For LE-CODE binaries: If set, print cups with tracks or arenas. For" \
@@ -19670,6 +19901,10 @@
"", \
"" )
+#:def_cmd_opt( "DL", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "DL", "LONG", \
"", \
"For LE-CODE binaries: If set, print cups with tracks or arenas. For" \
@@ -19719,6 +19954,10 @@
"", \
"" )
+#:def_cmd_opt( "DLL", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "DLL", "LONG", \
"", \
"For LE-CODE binaries: If set, print cups with tracks or arenas. For" \
@@ -19776,6 +20015,10 @@
"", \
"" )
+#:def_cmd_opt( "PATCH", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "PATCH", "TRACK_DIR", \
"", \
"" )
@@ -19868,6 +20111,10 @@
"", \
"" )
+#:def_cmd_opt( "LPAR", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "LPAR", "DEST", \
"", \
"" )
@@ -20028,6 +20275,10 @@
"", \
"" )
+#:def_cmd_opt( "CREATE", "DEBUG", \
+ "", \
+ "" )
+
#:def_cmd_opt( "CAT", "COMPLETE", \
"", \
"" )
@@ -20181,6 +20432,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wmdlt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wmdlt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -20293,6 +20549,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -20686,6 +20950,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "TEST", "VERBOSE", \
"", \
"Print the matrices of transformations." )
@@ -21434,6 +21706,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wpatt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wpatt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -21523,6 +21800,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -21763,6 +22048,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )
@@ -21990,6 +22283,11 @@
" details about the declared command. The fourth variant prints an" \
" overview about all commands and all global options." )
+#:def_cmd( "CONFIG", "CONFIG", \
+ "wstrt CONFIG [options]...", \
+ "Show all information about the search for the configuration file and" \
+ " its content." )
+
#:def_cmd( "ARGTEST", "ARGTEST", \
"wstrt ARGTEST ...", \
"This debug command accepts all kinds of parameters and prints one" \
@@ -22095,6 +22393,14 @@
"Stop parsing the command line and print a help message with all" \
" commands included. Exit after printing." )
+#:def_opt( "CONFIG", "config", "GP", \
+ "file", \
+ "Define a configuration file or a directory as source. In later case," \
+ " file @'wiimms-szs-tools.conf'@ is searched.\n" \
+ " If option is not not set, then file @'wiimms-szs-tools.conf'@ is" \
+ " searched in different directories. Use command @'wszst CONFIG'@ to" \
+ " get more details." )
+
#:def_opt( "ALLOW_ALL", "allow-all|allowall", "G", \
"", \
"Usually commands accept only options with impact to the command. All" \
@@ -22644,6 +22950,14 @@
"", \
"" )
+#:def_cmd_opt( "CONFIG", "CONFIG", \
+ "", \
+ "" )
+
+#:def_cmd_opt( "CONFIG", "LONG", \
+ "", \
+ "If set, print the search list too." )
+
#:def_cmd_opt( "COLORS", "COLORS", \
"", \
"" )