aboutsummaryrefslogtreecommitdiff
path: root/project/src/wlect.c
diff options
context:
space:
mode:
authorWiimm <wiimm@wiimm.de>2024-02-17 11:45:01 +0100
committerWiimm <wiimm@wiimm.de>2024-02-17 11:45:01 +0100
commit685554b2c272fdefc23bb1d237c059b52ab5fc58 (patch)
tree9e0e7ff41f688bdc07fdb7869fc0258725197bcf /project/src/wlect.c
parentac9a0b25eaffaa05e5431a8527dab8649ef6504f (diff)
SZS v2.41a
Diffstat (limited to 'project/src/wlect.c')
-rw-r--r--project/src/wlect.c62
1 files changed, 45 insertions, 17 deletions
diff --git a/project/src/wlect.c b/project/src/wlect.c
index d54eb52..f63bbd4 100644
--- a/project/src/wlect.c
+++ b/project/src/wlect.c
@@ -1357,10 +1357,11 @@ static void help_distrib ( enumError exit_code )
"A CT-CODE or LE-CODE definition file."
" The file is scanned by the CT-CODE scanner and then imported.\n"
"\n"
- "\t{name|*.szs}:\t|"
- "Track files are added to 2 different internal track tracks lists,"
- " one for racing tracks and one for battle areans."
- " I the argument is quoted then wlect will resolve the wildcards by itself."
+ "\t{name|*.*}:\t|"
+ "If a file is a valid track file,"
+ " then it is added to one of two different internal track lists"
+ " (one for racing tracks and one for battle areans)."
+ " If the argument is quoted then wlect will resolve the wildcards by itself."
"\n"
" |All file types that are accepted by option {opt|--le-define}"
" ({name|BRRES}, {name|TEX0}, {name|CT-CODE}, ...) are also possible.\n"
@@ -1683,18 +1684,27 @@ static void help_distrib ( enumError exit_code )
"{syntax|OPTIONS} is a comma separated list of 0 or more keywords."
" The following options are available:"
- "|[14,22]\n"
- "\t{par|remove}:\t|Remove all used SZS source files at the very end."
- " »{par|rm}« is s short cut.\n"
+ "|[14,24]\n"
+ "\t{par|remove}:\t|Remove all used track source files at the very end."
+ " »{par|rm}« is s short cut.\n"
+ "\t{par|ext}:\t|Append a track file extension list to each LTA.\n"
+ "\t{par|redir}:\t|Create redirection file {file|lta.szs} type {name|USE-LTA}.\n"
"\t{par|yaz0}:\t|Force YAZ0 compression for each track file.\n"
- "\t{par|bz}:\t|Force BZ compression for each track file.\n"
"\t{par|bzip2}:\t|Force BZIP2 compression for each track file.\n"
- "\t{par|lz}:\t|Force LZ compression for each track file.\n"
"\t{par|lzma}:\t|Force LZMA compression for each track file.\n"
+ "\t{par|wbz}:\t|Force WBZ (BZ) compression for each track file.\n"
+ "\t{par|wlz}:\t|Force WLZ (LZ) compression for each track file.\n"
"\n|[4,12,14,22]"
- "\t\t|{hl|DIRECTORY} specifies the destination directory."
+ "\t\t|Controlled by the global processing options {opt|+PR0} and"
+ " {opt|+PR1} to {opt|+PR60}, progress messages can be output."
+ " These settings can be overwritten using the local options"
+ " {par|pr0}, {par|pr1}, {par|pr2}, {par|pr5},"
+ " {par|pr10}, {par|pr20}, {par|pr30} or {par|pr60},"
+ " where the number indicates the number of seconds between 2 messages.\n"
+ "\n"
+ "\t\t|{syntax|DIRECTORY} specifies the destination directory."
" Only files with valid member »{name|PATH}« are added to the archives."
- " SZS files with unknown paths are searched in directories"
+ " Track files with unknown paths are searched in directories"
" defined by the options {opt|--copy-tracks}, {opt|--move-tracks},"
" {opt|--move1-tracks} and {opt|--link-tracks}."
" Files with identical content are recognized"
@@ -1914,10 +1924,29 @@ static void help_distrib ( enumError exit_code )
//-------------------------
"\n"
+ " |{heading|Progress options:}\n"
+ "\n"
+ "\t|The following options determine whether and at what intervals progress messages"
+ " are output. These progress messages are only displayed when importing track files"
+ " with placeholders and when creating LTA files.\n"
+ "\n"
+ "\t{name|PR0}:\t|Disable progress messages.\n"
+ "\t{name|PR1}:\t|Output a progress message approximately every second.\n"
+ "\t{name|PR2}:\t|Output a progress message approximately every 2 seconds.\n"
+ "\t{name|PR5}:\t|Output a progress message approximately every 5 seconds.\n"
+ "\t{name|PR10}:\t|Output a progress message approximately every 10 seconds.\n"
+ "\t{name|PR20}:\t|Output a progress message approximately every 20 seconds.\n"
+ "\t{name|PR30}:\t|Output a progress message approximately every 30 seconds.\n"
+ "\t{name|PR60}:\t|Output a progress message approximately every 60 seconds.\n"
+ "\n"
+
+ //-------------------------
+
+ "\n"
" |{heading|More options:}\n"
"\n"
"\t{name|IN-LECODE}:\t|"
- "When reading a LE-CODE binaray file (e.g. »{file|lecode-PAL.bin}«),"
+ "When reading a LE-CODE binary file (e.g. »{file|lecode-PAL.bin}«),"
" only the settings are imported, but not the binary itself."
" So if writing a LE-CODE binary then the region dependent built-in binary is used."
" If this option set, then binaries are imported to override the built-in versions."
@@ -1927,8 +1956,7 @@ static void help_distrib ( enumError exit_code )
"Switch option {name|IN-LECODE} off.\n"
"\n"
"\t{name|NO-SLOT}:\t|"
- "Suppress »{name|SLOT <index>}« lines when creating a LE-CODE defintion file ({name|LE-DEF})."
- " {name|NOSLOT} is a short cut for this keyword.\n"
+ "Suppress »{name|SLOT <index>}« lines when creating a LE-CODE defintion file ({name|LE-DEF}).\n"
"\t{name|/NO-SLOT}:\t|"
"Switch option {name|NO-SLOT} off.\n"
"\n"
@@ -1951,10 +1979,9 @@ static void help_distrib ( enumError exit_code )
"\t{name|CT-SLOTS}:\t|"
"Options {name|HEX2SLOT} and {name|NAME2SLOT}:"
" The availability of a slot for LE-CODE is usually examined."
- " If this option is set, the availability for CT-CODE is examined."
- " {name|CTSLOTS} is a short cut for this keyword.\n"
+ " If this option is set, the availability for CT-CODE is examined.\n"
"\t{name|/CT-SLOTS}:\t|"
- "Switch option {name|CT-SLOT} off.\n"
+ "Switch option {name|CT-SLOTS} off.\n"
"\n"
"\t{name|BRIEF}:\t|"
"When creating text files, detailed descriptions are suppressed."
@@ -2732,6 +2759,7 @@ static enumError CheckOptions ( int argc, char ** argv, bool is_env )
case GO_DE: use_de = true; break;
case GO_CT_CODE: ctcode_enabled = true; break;
case GO_LE_CODE: lecode_enabled = true; break; // optional argument ignored
+ case GO_LE_04X: lecode_04x = true; break;
case GO_COLORS: err += ScanOptColorize(0,optarg,0); break;
case GO_NO_COLORS: opt_colorize = COLMD_OFF; break;