Reformat AboutBox.r and telnet.r using Rez includes (#11)

By passing type declaration files to DeRez, the resource files can be output as meaningful
resource statements, rather than just hex dumps.

Also, 'Types.r' is used as the Rez prefix file in the CodeWarrior project.

Commands used to generate these files:

OS X 10.6, using system Rez and Universal Headers from CW:
DeRez AboutBox.rsrc Types.r -i /Volumes/CodeWarrior/Metrowerks\ CodeWarrior\ 8.0/Metrowerks\ CodeWarrior/MacOS\ Support/Universal/Interfaces/RIncludes/ > AboutBox.r

macOS 10.13, using Xcode Rez and Carbon headers:
DeRez -isysroot `xcrun --sdk macosx --show-sdk-path` AboutBox.rsrc Carbon.r > AboutBox.r

Both methods produce the exact same file.

Thanks to eschaton for the suggestion
This commit is contained in:
Brendan Shanks 2018-06-14 23:38:09 -07:00
parent b823b4337b
commit e8566de54f
4 changed files with 10460 additions and 5969 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,13 +1,33 @@
data 'DITL' (1000, purgeable) {
$"0003 0000 0000 0000 0000 00FA 0190 8000" /* ...........ú.<EFBFBD>. */
$"0000 0000 0064 00DC 00F6 018C 0000 0000" /* .....d.Ü.ö.Œ.... */
$"0000 00E5 0019 00F4 00BF 0000 0000 0000" /* ...å...ô.¿...... */
$"00AF 000A 00DF 00D4 0000" /* .¯.Â.ß.Ô.. */
resource 'DITL' (1000, purgeable) {
{ /* array DITLarray: 4 elements */
/* [1] */
{0, 0, 250, 400},
UserItem {
disabled
},
/* [2] */
{100, 220, 246, 396},
UserItem {
enabled
},
/* [3] */
{229, 25, 244, 191},
UserItem {
enabled
},
/* [4] */
{175, 10, 223, 212},
UserItem {
enabled
}
}
};
data 'STR#' (1000) {
$"0001 1668 7474 703A 2F2F 7777 772E 6D61" /* ...http://www.ma */
$"6373 7368 2E63 6F6D 2F" /* cssh.com/ */
resource 'STR#' (1000) {
{ /* array StringArray: 1 elements */
/* [1] */
"http://www.macssh.com/"
}
};
data 'TEXT' (1000, "Credits") {
@ -223,9 +243,14 @@ data 'TEXT' (1000, "Credits") {
$"0D0D 0D" /* ... */
};
data 'WIND' (1000) {
$"0032 0008 012C 0198 0002 0100 0000 0000" /* .2...,.˜........ */
$"0000 0000 300A" /* ....0Â */
resource 'WIND' (1000) {
{50, 8, 300, 408},
plainDBox,
visible,
noGoAway,
0x0,
"",
alertPositionMainScreen
};
data 'styl' (1000, "Credits") {

File diff suppressed because it is too large Load Diff