aboutsummaryrefslogtreecommitdiff
path: root/project/src/ui/tab-wstrt.inc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/src/ui/tab-wstrt.inc45
1 files changed, 31 insertions, 14 deletions
diff --git a/project/src/ui/tab-wstrt.inc b/project/src/ui/tab-wstrt.inc
index e6d0d22..3bef0fb 100644
--- a/project/src/ui/tab-wstrt.inc
+++ b/project/src/ui/tab-wstrt.inc
@@ -97,13 +97,12 @@
{ T_DEF_CMD, "DUMP", "DUMP",
"wstrt DUMP file...",
- "Dump the structure of 'StaticR.rel' (in development)"
- " and of DOL files as text." },
+ "Dump the structure of REL files (e.g. @StaticR.rel@)"
+ " and of DOL files (e.g. @main.dol@) as text." },
{ H_DEF_CMD, "CDUMP", "_CDUMP",
"wstrt _CDUMP file...",
- "Dump the structure of 'StaticR.rel' (in development)"
- " and of DOL files as C source fragments." },
+ "Dump the structure of of DOL files as C source fragments." },
{ T_DEF_CMD, "HEXDUMP", "HEXDUMP|XDUMP",
"wstrt HEXDUMP file...",
@@ -114,9 +113,9 @@
{ T_DEF_CMD, "PORT", "PORT",
"wstrt PORT param...",
"The command expects a list of keywords or hex numbers."
- " Keywords are @PAL@ (default), @USA@, @JAP@, @KOR@, or any abbreviation of them."
- " They select the region for the next numeric input values."
- " The hex numbers are interpreted as addresses."
+ " Keywords are @PAL@ (default), @USA@, @JAPAN@, @KOREA@, or any abbreviation of them."
+ " They select the region for the following addresses."
+ " The hex numbers (with or without @0x@ prefix) are interpreted as addresses."
" If possible, they are ported to all other regions."
" The result is printed as colorized table."
"\n"
@@ -127,7 +126,10 @@
"A list of addresses in hex format is expected as input."
" The segments in which the specified addresses"
" are located is calculated for each region."
- " The result is output as a human and machine readable table." },
+ " The result is output as a human and machine readable table."
+ "\n "
+ " This command is well suited to converting addresses"
+ " into file offsets and vice versa." },
{ H_DEF_CMD, "HTTPS", "_HTTPS",
"wstrt _HTTPS file...",
@@ -136,8 +138,7 @@
{ T_DEF_CMD, "EXTRACT", "EXTRACT|X",
"wstrt EXTRACT dol...",
- "Extract the sections of a DOL file into a directory."
- " StaticR.rel files are ignored." },
+ "Extract the sections of a DOL or a REL file into a directory." },
{ T_SEP_CMD, 0,0,0,0 }, //----- separator -----
@@ -645,13 +646,22 @@
{ T_OPT_C, "SECTIONS", "sections",
0, 0 /* copy of wszst */ },
+ { T_OPT_CP, "PORT_DB", "port-db|portdb",
+ "file",
+ "Load the specified update file and replace the internal porting database."
+ " If not set, then file @port-db.bin@ is searched in the share path." },
+
{ T_OPT_CP, "ORDER", "order",
"pujk",
- "The parameter is scanend for the first appearance of letters P (for PAL),"
+ "The parameter is scanned for the first appearance of letters P (for PAL),"
" U (USA), J (JAPAN) and K (KOREA) to define the order of the output."
" Case is ignored. Missing letters are added automatically."
" The default is @'PUJK'@." },
-
+
+ { T_OPT_C, "NO_0X", "0|no-0x|no0x",
+ 0,
+ "Suppress 0x prefix of hex numbers." },
+
{ T_SEP_OPT, 0,0,0,0 }, //----- separator -----
{ T_OPT_CP, "VADDR", "vaddr|va",
@@ -896,8 +906,8 @@
{ 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." },
+ { T_COPT, "BRIEF", 0,0, CONFIG_BRIEF },
+ { T_COPT, "LONG", 0,0, CONFIG_LONG },
//---------- COMMAND wstrt ARGTEST ----------
@@ -982,22 +992,29 @@
//---------- COMMAND wstrt PORT ----------
{ T_CMD_BEG, "PORT", 0,0,0 },
+ { T_COPT, "PORT_DB", 0,0,0 },
{ T_COPT, "ORDER", 0,0,0 },
+ { T_COPT, "NO_0X", 0,0,0 },
{ T_COPT, "NO_HEADER", 0,0,
"Suppress the table header and footer and output exactly 1 line for"
" each specified address. This makes the output more machine-readable." },
{ T_COPT, "BRIEF", 0,0,
" Same as {--no-header}." },
+ { T_COPT, "LONG", 0,0,
+ "Print file offsets too." },
//---------- COMMAND wstrt WHERE ----------
{ T_CMD_BEG, "WHERE", 0,0,0 },
{ T_COPT, "ORDER", 0,0,0 },
+ { T_COPT, "NO_0X", 0,0,0 },
{ T_COPT, "NO_HEADER", 0,0,
"Suppress the table header and footer and output exactly 1 line for"
" each specified address. This makes the output more machine-readable." },
{ T_COPT, "BRIEF", 0,0,
" Same as {--no-header}." },
+ { T_COPT, "LONG", 0,0,
+ "Print file offsets too." },
//---------- COMMAND wstrt HTTPS ----------