mirror of
https://github.com/D-Modem/bbs.git
synced 2026-11-28 17:38:04 -08:00
Merge main into time sync (MSN section beside ntp/nts/ptp)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUSPBZTX8wShmaLrrg Signed-off-by: Claude <noreply@anthropic.com>
This commit is contained in:
346 files changed
+21515
-148
No files matched your search
@@ -31,7 +31,7 @@ Main menu
|
||||
|
||||
- Message areas, private mail, chat, paging and doors (DOS doors in dosemu2, or Linux programs)
|
||||
- File areas with X/Y/ZMODEM, Kermit, IND$FILE and FTP
|
||||
- Networks: FidoNet and other FTNs, QWK, NNTP newsgroups, IRC, AIM and ICQ, and MRC
|
||||
- Networks: FidoNet and other FTNs, QWK, NNTP newsgroups, IRC, AIM and ICQ, MSN Messenger, and MRC
|
||||
- Terminals: ANSI, VT, PETSCII, RIPscrip, sixel and 3270 graphics
|
||||
- On the web: a forum, image boards, a web terminal and an HTTP API
|
||||
- Time: follows NTP, NTS and PTP servers, and serves all three
|
||||
|
||||
@@ -2,6 +2,36 @@
|
||||
|
||||
Ideas not yet started, with what is known of them.
|
||||
|
||||
## An AOL front end
|
||||
|
||||
*Status: started; the FDO91 layer (`internal/aol/fdo`) and P3
|
||||
(`internal/aol/p3`) are done.*
|
||||
|
||||
For AOL 3.0 and 4.0 for Windows, the real clients, over TCP (port 5190, the
|
||||
client's `AmericaOnline.aol.com`) and by modem.
|
||||
|
||||
- **FDO91** (done): atom streams read and written, all eight encoding
|
||||
styles and large atoms; a compiler from FDO91 source that matches
|
||||
Ada32.dll byte for byte on AtomForge's corpus (1,889 forms, 74,369
|
||||
single atoms, 44 live captures); a decompiler whose text compiles back
|
||||
to the same bytes.
|
||||
- **P3** (done): packets (CRC-16/ARC, AOL 4.0's `**`), and the host's
|
||||
end of a link: INIT acknowledged, DATA in order in and within a window
|
||||
of 16 out, ACKs every 8 or soon after, NAKs and go-back-N resends,
|
||||
heartbeats after 12 seconds, 10 of them and the link is down.
|
||||
- **Listener**, next: OSCAR's port 5190 already hands a connection that
|
||||
starts with P3's sync byte to `oscar.Server.P3`; serve it there with
|
||||
`p3.Serve`, and sniff a P3 INIT (`p3.Sniff`) on the telnet port too.
|
||||
- **Tokens**: `Dd` sign-on (the form's two `de_data`) to the BBS's login,
|
||||
then chat (`Aa`), IMs (`iS`), mail (`m4`, MIP), keywords (`k1`/`f1`) to
|
||||
areas, `pE` sign-off; each answered with forms compiled from source.
|
||||
- **Modem callers**: the client's CCL script expects a network's prompts
|
||||
(SprintNet, Tymnet) before P3; emulate one, or ship a CCL that dials
|
||||
straight in.
|
||||
- **To decide**: AOL 4.0's RSA handshake (revival servers turn it off in
|
||||
the client); which client forms (32-xxxx) are in its own database and
|
||||
which the host must send.
|
||||
|
||||
## Doors for 3270 callers: an ANSI to 3270 layer
|
||||
|
||||
*Status: being thought about; other ways to solve it may win.*
|
||||
|
||||
@@ -146,6 +146,11 @@ throttle_time = 600
|
||||
; and an empty line: app_dmodem's DMODEM_* or a
|
||||
; modemmenu item's MODEM_* (rate, caller ID, number)
|
||||
; header_timeout = 10 seconds for the header
|
||||
; handoff = no type = raw on a unix socket, with header = yes:
|
||||
; the caller's line itself may come with the header
|
||||
; (SCM_RIGHTS, modemmenu's item with handoff = yes),
|
||||
; the session then on that terminal, nothing copied;
|
||||
; closing the connection gives the line back
|
||||
; trust_user = no yes: the header's MODEM_USER (an rlogin's server
|
||||
; user) is logged in without a password. Only where
|
||||
; nothing but trusted menus can connect
|
||||
@@ -249,6 +254,18 @@ address = 127.0.0.1:2513
|
||||
;socket_mode = 0660
|
||||
;socket_group = asterisk
|
||||
|
||||
; the same with the caller's line itself (modemmenu's item with
|
||||
; handoff = yes): the BBS on the modem's terminal, nothing copied between
|
||||
;[listen handoff]
|
||||
;type = raw
|
||||
;address = /run/bbs/handoff.sock
|
||||
;header = yes
|
||||
;handoff = yes
|
||||
;trust_user = yes
|
||||
;create_users = yes
|
||||
;socket_mode = 0660
|
||||
;socket_group = asterisk
|
||||
|
||||
; modemmenu's auth socket ([authd] there): the accounts modemmenu logs in
|
||||
; (no password here) log in by telnet, SSH, the web ... with their
|
||||
; modemmenu password, asked of modemmenu's backends. See
|
||||
@@ -653,6 +670,28 @@ address = 127.0.0.1:2513
|
||||
; the screen name the BBS's notices come from
|
||||
;system = OnlineHost
|
||||
|
||||
; MSN Messenger: the chat for MSN Messenger 1.0 to 4.7 and Windows
|
||||
; Messenger 4.x (MSNP2 to 7), beside IRC and AIM. Users sign in as
|
||||
; name@domain with their BBS passwords; contacts are their friends list;
|
||||
; an IM is a private message (a PRIVMSG on IRC), kept for one away. The
|
||||
; clients must be pointed at this host (see the wiki page).
|
||||
; See docs/wiki/MSN-Messenger.md
|
||||
;[msn]
|
||||
;address = :1863
|
||||
; where clients are sent for conversations, host:port (default: the
|
||||
; address each one came to; set it behind NAT)
|
||||
;host = msn.example.org:1863
|
||||
; handles are name@domain (default bbs.invalid); clients may sign in with
|
||||
; any domain, as MSN 1.0's @hotmail.com
|
||||
;domain = msn.example.org
|
||||
;max_clients = 256
|
||||
; each conversation is a connection of its own
|
||||
;max_per_ip = 16
|
||||
; the name the BBS's notices come from
|
||||
;system = BBS
|
||||
; a web address the clients' links (inbox, profiles) open
|
||||
;site = https://bbs.example.org/
|
||||
|
||||
; Multi Relay Chat: the BBSes' chat network. Its rooms are the chat rooms
|
||||
; beginning mrc- here (mrc-lobby is its lobby), on terminals and IRC alike.
|
||||
; See docs/wiki/MRC.md
|
||||
|
||||
@@ -70,6 +70,7 @@ import (
|
||||
"github.com/D-Modem/bbs/internal/imageboard"
|
||||
"github.com/D-Modem/bbs/internal/ircd"
|
||||
"github.com/D-Modem/bbs/internal/mrc"
|
||||
"github.com/D-Modem/bbs/internal/msn"
|
||||
"github.com/D-Modem/bbs/internal/news"
|
||||
"github.com/D-Modem/bbs/internal/nntp"
|
||||
"github.com/D-Modem/bbs/internal/oscar"
|
||||
@@ -205,6 +206,9 @@ func main() {
|
||||
if l.Header {
|
||||
extra += ", header"
|
||||
}
|
||||
if l.Handoff {
|
||||
extra += ", handoff"
|
||||
}
|
||||
if l.TrustUser {
|
||||
extra += ", trust_user"
|
||||
}
|
||||
@@ -268,6 +272,9 @@ func main() {
|
||||
if o := cfg.OSCAR; o != nil {
|
||||
fmt.Printf("oscar: %q, reconnect at %q, ICQ numbers from %d\n", o.Address, o.Host, o.UINBase)
|
||||
}
|
||||
if m := cfg.MSN; m != nil {
|
||||
fmt.Printf("msn: %q, conversations at %q, handles @%s\n", m.Address, m.Host, m.Domain)
|
||||
}
|
||||
if cfg.Finger != nil {
|
||||
fmt.Printf("finger: %s (online %v, users %v)\n", cfg.Finger.Address, cfg.Finger.Online, cfg.Finger.Users)
|
||||
}
|
||||
@@ -479,6 +486,19 @@ func serve(cfg *server.Config, path string) int {
|
||||
}
|
||||
}()
|
||||
}
|
||||
if cfg.MSN != nil {
|
||||
msrv, err := msn.New(b, *cfg.MSN)
|
||||
if err != nil {
|
||||
lg.Printf("%v", err)
|
||||
return 1
|
||||
}
|
||||
go func() {
|
||||
if err := msrv.Run(ctx); err != nil {
|
||||
lg.Printf("%v", err)
|
||||
stop()
|
||||
}
|
||||
}()
|
||||
}
|
||||
if cfg.Finger != nil {
|
||||
fs := &finger.Server{B: b, S: *cfg.Finger}
|
||||
go func() {
|
||||
|
||||
+12
-1
@@ -205,7 +205,18 @@ Code: `internal/cis/slp.go`, `internal/cis/hmi.go`, `internal/xfer/cisbtl.go`. T
|
||||
- `0x07` hangs up.
|
||||
- Everything else gets an ack on stream 1.
|
||||
- The first message after the Transport Layer starts is sent twice, 300 ms apart. Every answer waits 120 ms first, as E's does.
|
||||
- **Page names:** `CIS:<ID>` and `HOM:<word>` both resolve through the ASCII service's page tree (`pages.txt`, IDs and GO words). Aliases: `NEWPAGE` → `NEW`, `CONTENTS` → `TOP`, `MAILHMI` → `MAIL`. Pages go out as `CIS:<ID>`, numbered with a 24-bit hash of the ID. `CIS:FORUMS` is the forum list. A forum, `MAIL` and `CB` are, for now, articles that say to use a terminal (milestone 8). An unknown name gets an article saying so, never nothing.
|
||||
- **Page names:** `CIS:<ID>` and `HOM:<word>` both resolve through the ASCII service's page tree (`pages.txt`, IDs and GO words). Aliases: `NEWPAGE` → `NEW`, `CONTENTS` → `TOP`, `MAILHMI` → `MAIL`. Pages go out as `CIS:<ID>`, numbered with a 24-bit hash of the ID. An unknown name gets an article saying so, never nothing.
|
||||
- **Forums and Mail (milestone 8), as pages, the way E measured WinCIM asking for them** (`internal/cis/hmiforum.go`):
|
||||
- `CIS:FORUMS` lists the forums.
|
||||
- `CIS:<GO>` is one forum: its sections, then its libraries.
|
||||
- `CIS:<GO>/S<n>` lists a section's messages, newest first, up to 200.
|
||||
- `CIS:<GO>/M<number>` is one message as an article, in the forum software 4 header format. Reading it sets the last-read mark.
|
||||
- `CIS:<GO>/L<n>` is a library's file list, as an article.
|
||||
- `CIS:MAIL` is the mailbox: `HOM:MAILHMI` from Get Mail, newest first, unread letters marked `*`.
|
||||
- `CIS:MAIL/<id>` is one letter. Reading it marks it read.
|
||||
- Every item has kind 0. E found that kind 1 draws a label the client will not select.
|
||||
- Pages are made afresh on each request.
|
||||
- **Not yet:** sending mail. E found that it is the `IInMailSendTV` transaction, sent at Send/Retrieve All, and its bytes are not recovered. Forum posting (`IFoMsgSendTV`), library transfers (`IFoLibSendTV`, streams 2/3/6/8), the CB, and the forms layer (`FORMCB.DLL`) are not done either.
|
||||
|
||||
## 5. Reverse-engineering plan for the gaps
|
||||
|
||||
|
||||
+22
-11
@@ -49,14 +49,22 @@ could sign on by AIM as that user, as with any AIM server.
|
||||
|
||||
## Buddies
|
||||
|
||||
The buddy list holds BBS names (or ICQ numbers). A buddy is online while
|
||||
they are on the BBS by any route, and shown away when they are away on
|
||||
AIM or IRC. Their profile is the one their AIM client set, or for someone
|
||||
not on AIM their line about themselves, their location and what they are
|
||||
doing on which node. The list itself is kept on the server (AIM 5's and
|
||||
ICQ 2001's "server-stored" list) or by the client (older ones); both work.
|
||||
Permit and deny lists, "allow only buddies" and ICQ's invisible status
|
||||
hide the user and refuse their IMs, from AIM users and others alike.
|
||||
The buddy list is the user's [friends list](Chat-and-Paging#friends):
|
||||
the same list the BBS's chat and IRC show, so a buddy is always a BBS
|
||||
user (by name, or ICQ number). Adding anyone else is refused. A friend
|
||||
added by IRC or the BBS comes to an AIM client that is on at once, in
|
||||
their group (`Friends` if they have none); one added or removed on AIM
|
||||
is on or off the list everywhere. Groups and aliases are kept with the
|
||||
friends list; the list's other items (permit and deny entries,
|
||||
preferences) as the client sent them. A client that keeps its own list
|
||||
(AIM 3 and 4) has its buddies put on the friends list as it sends them.
|
||||
|
||||
A buddy is online while they are on the BBS by any route, and shown away
|
||||
when they are away on AIM or IRC. Their profile is the one their AIM
|
||||
client set, or for someone not on AIM their line about themselves, their
|
||||
location and what they are doing on which node. Permit and deny lists,
|
||||
"allow only buddies" and ICQ's invisible status hide the user and refuse
|
||||
their IMs, from AIM users and others alike.
|
||||
|
||||
## IMs
|
||||
|
||||
@@ -64,9 +72,12 @@ An IM to a BBS user reaches every node they are on: an AIM or ICQ client
|
||||
gets it as an IM (from AIM to AIM with its fonts and colours), an IRC client
|
||||
as a `PRIVMSG`, a caller on a terminal as a message line. What they send
|
||||
back comes as an IM from them. Typing notices, file transfers and direct
|
||||
connections pass between AIM clients. An IM to someone not online is
|
||||
refused as AIM refused them ("not logged on"); there are no offline
|
||||
messages. The BBS's notices (new mail, a page for the sysop) come as IMs
|
||||
connections pass between AIM clients. IMs are [kept](Chat-and-Paging#private-messages).
|
||||
An IM to a BBS user who isn't on is kept for them, and the sender told so
|
||||
(once) by `OnlineHost`; they get it when they next sign on: on AIM as an
|
||||
IM marked with when it was sent, on ICQ as an offline message, on IRC or
|
||||
a terminal as a message line. An IM to a name that is no BBS user's is
|
||||
refused ("not logged on"). The BBS's notices (new mail, a page for the sysop) come as IMs
|
||||
from `OnlineHost`.
|
||||
|
||||
## Chat rooms
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
Callers on different nodes can talk to each other in three ways: in chat
|
||||
rooms, by sending a message to one node, and by paging the sysop.
|
||||
rooms, by private messages, and by paging the sysop. Each user also keeps
|
||||
a [friends list](#friends).
|
||||
|
||||
## Chat rooms
|
||||
|
||||
@@ -16,7 +17,11 @@ last caller leaves, unless the sysop has made it
|
||||
| `/who` | who is in this room |
|
||||
| `/rooms` | the rooms in use, and who is in them |
|
||||
| `/join ROOM` | go to another room (letters, digits and `-`, up to 20) |
|
||||
| `/msg NODE TEXT` | a line to one node, wherever its caller is |
|
||||
| `/msg WHO TEXT` | a private message to a user (or to a node, by its number), [kept](#private-messages) if they are away |
|
||||
| `/history [WHO]` | those you have talked with, or your last lines with one |
|
||||
| `/friends` | your [friends list](#friends), and who on it is on |
|
||||
| `/friend WHO`, `/unfriend WHO` | put a user on your friends list, or take them off |
|
||||
| `/block WHO`, `/unblock WHO` | refuse a user's private messages, or take them again ([blocking](#blocking)) |
|
||||
| `/topic [TEXT]` | the room's topic; the sysop sets a [permanent room](IRC#permanent-rooms)'s |
|
||||
| `/quit` | leave the chat |
|
||||
| `/help` | these |
|
||||
@@ -35,13 +40,39 @@ with other BBSes. The rooms are also channels on the BBS's [IRC](IRC)
|
||||
server (`#main` and the rest), with IRC clients in them alongside the
|
||||
callers.
|
||||
|
||||
## Messages to a node
|
||||
## Private messages
|
||||
|
||||
On the text BBS, *Who's online* ends by offering to send a line to a
|
||||
node, and `/msg NODE TEXT` does the same from chat (on a 3270 too). The
|
||||
line reaches the caller wherever they are: on the text BBS, at whatever
|
||||
prompt they are at; on a 3270, on the message line of their next screen
|
||||
(with `(+N)` when more are waiting).
|
||||
node, and `/msg WHO TEXT` sends one from chat (on a 3270 too), to a user
|
||||
by name or to a node by its number. The line reaches the caller
|
||||
wherever they are: on the text BBS, at whatever prompt they are at; on a
|
||||
3270, on the message line of their next screen (with `(+N)` when more
|
||||
are waiting); on [IRC](IRC) as a `PRIVMSG`; on [AIM or ICQ](AIM-and-ICQ)
|
||||
or [MSN](MSN-Messenger) as an IM.
|
||||
|
||||
Private messages are kept, however they were sent: the BBS's chat, IRC,
|
||||
AIM, ICQ or MSN. A message to a user who isn't on is kept for them, and they
|
||||
get it when they next log in, with the time it was sent (an ICQ client
|
||||
gets them as its offline messages). `/history WHO` (on IRC, `/msg
|
||||
BBSServ HISTORY nick`) shows your last lines with someone. Only the two
|
||||
users in a conversation can read it back.
|
||||
|
||||
## Friends
|
||||
|
||||
Every user has one friends list, of BBS users. It is the same list
|
||||
everywhere: `/friends` in chat, `FRIENDS` to BBSServ on IRC, and the
|
||||
buddy list on [AIM and ICQ](AIM-and-ICQ#buddies), the contact list on
|
||||
[MSN](MSN-Messenger#contacts). A friend added on one shows on the others;
|
||||
an AIM or MSN client that is on gets them at once, in their group
|
||||
(`Friends` on AIM if they have none).
|
||||
|
||||
## Blocking
|
||||
|
||||
Every user also has one blocked list. `/block WHO` puts a user on it
|
||||
(and `/unblock WHO` takes them off), as does MSN's "Block". A blocked
|
||||
user's private messages are refused, however they send them (chat, IRC,
|
||||
AIM, MSN) and whether or not you are on, and MSN shows you offline to
|
||||
them.
|
||||
|
||||
## Paging the sysop
|
||||
|
||||
|
||||
+16
-5
@@ -49,10 +49,20 @@ with their identification, which shows in who's online. A CIM client
|
||||
CIM clients speak HMI, a binary protocol inside B Plus packets. The
|
||||
service follows what 24high/CompuServe-Emulator recovered from WinCIM
|
||||
3.0.2: the Secure Login, the terminal-mode trade after it, the B Plus
|
||||
Transport Layer, and the HMI messages for pages. WinCIM can show the main
|
||||
menu, the menus and articles of `pages.txt`, What's New and the Table of
|
||||
Contents, and use Find. Forums, Mail and the CB are not in CIM yet; their
|
||||
pages say to use a terminal program for now.
|
||||
Transport Layer, and the HMI messages for pages. In WinCIM you can:
|
||||
|
||||
- browse the main menu, the menus and articles of `pages.txt`, What's New
|
||||
and the Table of Contents, and use Find;
|
||||
- read the forums: the forum list, a forum's sections and libraries, a
|
||||
section's messages (newest first) and each message, which then counts
|
||||
as read;
|
||||
- see a library's files (downloads still need a terminal program);
|
||||
- read your mail with **Get Mail**: the mailbox, newest first, unread
|
||||
letters marked `*`. A letter read is marked read.
|
||||
|
||||
Sending mail, posting to forums, downloads and the CB are not in CIM yet.
|
||||
WinCIM sends mail and forum messages through transactions of its own,
|
||||
which nobody has recovered yet. Use a terminal program for those for now.
|
||||
|
||||
Point WinCIM at the listener over TCP. In CIS.INI, the connector's
|
||||
`CommType=WINSOCK`, `WinsockCommType=Local` and `HostIPAddress` set
|
||||
@@ -250,7 +260,8 @@ so only callers using the same key read each other.
|
||||
| Libraries on the file areas, with B+ downloads and uploads | |
|
||||
| CompuServe Mail on the BBS's private mail | A kept address book, binary mail |
|
||||
| The CB Simulator on the chat rooms | Forum conferences (CO) |
|
||||
| CIM: Secure Login, the B Plus Transport Layer, HMI pages, menus, articles and Find | Forums, Mail, libraries and CB in CIM |
|
||||
| CIM: Secure Login, the B Plus Transport Layer, HMI pages, menus, articles and Find | |
|
||||
| CIM: reading forums and Mail, library lists | CIM: sending mail, posting, downloads, CB |
|
||||
|
||||
The research behind all this, with sources, is in
|
||||
[docs/cis](https://github.com/D-Modem/bbs/tree/main/docs/cis).
|
||||
@@ -32,6 +32,7 @@ the file is laid out.
|
||||
| [`[door NAME]`](#door-name) | A door: a program callers play, or another system's doors. |
|
||||
| [`[irc]`](#irc) | IRC: the chat rooms as channels (#main ...), for IRC clients. |
|
||||
| [`[oscar]`](#oscar) | AIM and ICQ: the chat for AIM and ICQ clients (OSCAR), beside IRC. |
|
||||
| [`[msn]`](#msn) | MSN Messenger: the chat for MSN Messenger 1.0 to 4.7 and Windows Messenger 4.x (MSNP2 to 7), beside IRC and AIM. |
|
||||
| [`[mrc]`](#mrc) | Multi Relay Chat: the BBSes' chat network. |
|
||||
| [`[finger]`](#finger) | finger: who is on ("finger @host"), and who a user is ("finger name@host"). |
|
||||
| [`[gopher]`](#gopher) | gopher: about the system, who is on, and what areas the sysop opens: no login, so anyone sees them. |
|
||||
@@ -99,7 +100,7 @@ There may be any number of these, each with its own NAME.
|
||||
| key | default | live | what it does |
|
||||
|---|---|---|---|
|
||||
| `type` | `telnet` | | a telnet server; with tn3270 = yes (the default), a client that says it is a 3270 (IBM-3278-2-E, IBM-DYNAMIC) gets the 3270 screens raw the caller's bytes as they come, no protocol: app_dmodem's mode = tcp, modemmenu tcp/unix items rlogin RFC 1282, as modemmenu's rlogin items speak it ssh SSH: passwords or users' keys (host_keys, legacy) Examples: `telnet`, `raw`, `ssh`, `rlogin`. |
|
||||
| `address` | `host:port` | | or a unix socket's path (/run/bbs/bbs.sock) Examples: `:2300`, `:992`, `127.0.0.1:2323`, `:2324`, `:2222`, `127.0.0.1:2513`, `/run/bbs/menu.sock`. |
|
||||
| `address` | `host:port` | | or a unix socket's path (/run/bbs/bbs.sock) Examples: `:2300`, `:992`, `127.0.0.1:2323`, `:2324`, `:2222`, `127.0.0.1:2513`, `/run/bbs/menu.sock`, `/run/bbs/handoff.sock`. |
|
||||
| `via` | `...` | | how its callers came, in who's online (telnet, modem, rlogin by type) |
|
||||
| `ansi` | `auto` | | the terminal's ANSI color: auto asks the terminal (or believes its terminal type), yes, no. |
|
||||
| `utf8` | `auto` | | UTF-8 both ways: auto by the terminal type (xterm and friends yes; "ansi" BBS terminals no), yes, no. |
|
||||
@@ -110,6 +111,7 @@ There may be any number of these, each with its own NAME.
|
||||
| `max_per_ip` | `4` | | connections at once from one address (loopback and unix sockets: no limit, they are modem servers) |
|
||||
| `header` | `no` | | yes: a session header comes first, NAME=value lines and an empty line: app_dmodem's DMODEM_* or a modemmenu item's MODEM_* (rate, caller ID, number) Examples: `yes`. |
|
||||
| `header_timeout` | `10` | | seconds for the header. |
|
||||
| `handoff` | `no` | | type = raw on a unix socket, with header = yes: the caller's line itself may come with the header (SCM_RIGHTS, modemmenu's item with handoff = yes), the session then on that terminal, nothing copied; closing the connection gives the line back. Examples: `yes`. |
|
||||
| `trust_user` | `no` | | yes: the header's MODEM_USER (an rlogin's server user) is logged in without a password. Only where nothing but trusted menus can connect. Examples: `yes`. |
|
||||
| `create_users` | `no` | | yes, with trust_user: a user unknown here gets an account (with no password of its own) Examples: `yes`. |
|
||||
| `socket_mode` | `0660` | | a unix socket's permissions. |
|
||||
@@ -452,6 +454,21 @@ AIM and ICQ: the chat for AIM and ICQ clients (OSCAR), beside IRC. Users sign o
|
||||
| `system` | | | the screen name the BBS's notices come from. Examples: `OnlineHost`. |
|
||||
|
||||
|
||||
## `[msn]`
|
||||
|
||||
MSN Messenger: the chat for MSN Messenger 1.0 to 4.7 and Windows Messenger 4.x (MSNP2 to 7), beside IRC and AIM. Users sign in as name@domain with their BBS passwords; contacts are their friends list; an IM is a private message (a PRIVMSG on IRC), kept for one away. The clients must be pointed at this host (see the wiki page). See docs/wiki/MSN-Messenger.md.
|
||||
|
||||
| key | default | live | what it does |
|
||||
|---|---|---|---|
|
||||
| `address` | | | See the section above. Examples: `:1863`. |
|
||||
| `host` | | | where clients are sent for conversations, host:port (default: the address each one came to; set it behind NAT) Examples: `msn.example.org:1863`. |
|
||||
| `domain` | | | handles are name@domain (default bbs.invalid); clients may sign in with any domain, as MSN 1.0's @hotmail.com. Examples: `msn.example.org`. |
|
||||
| `max_clients` | | | handles are name@domain (default bbs.invalid); clients may sign in with any domain, as MSN 1.0's @hotmail.com. Examples: `256`. |
|
||||
| `max_per_ip` | | | each conversation is a connection of its own. Examples: `16`. |
|
||||
| `system` | | | the name the BBS's notices come from. Examples: `BBS`. |
|
||||
| `site` | | | a web address the clients' links (inbox, profiles) open. Examples: `https://bbs.example.org/`. |
|
||||
|
||||
|
||||
## `[mrc]`
|
||||
|
||||
Multi Relay Chat: the BBSes' chat network. Its rooms are the chat rooms beginning mrc- here (mrc-lobby is its lobby), on terminals and IRC alike. See docs/wiki/MRC.md.
|
||||
|
||||
+3
-1
@@ -79,7 +79,8 @@ which is generated from `bbs.conf.sample`.
|
||||
- [Newsgroups](Newsgroups-and-NNTP) served by NNTP and exchanged with other
|
||||
news servers
|
||||
- [IRC](IRC), where the chat rooms are channels, [AIM and ICQ](AIM-and-ICQ)
|
||||
for AIM and ICQ clients on the same chat, and [MRC](MRC), the chat
|
||||
for AIM and ICQ clients on the same chat, [MSN Messenger](MSN-Messenger)
|
||||
for MSN clients, and [MRC](MRC), the chat
|
||||
network shared with other BBSes
|
||||
- [Finger and gopher](Finger-and-Gopher)
|
||||
- [Time](Time): NTP, NTS and PTP, followed and served
|
||||
@@ -136,6 +137,7 @@ which is generated from `bbs.conf.sample`.
|
||||
| [Chat and paging](Chat-and-Paging) | chat rooms, node messages, paging the sysop |
|
||||
| [IRC](IRC) | the IRC server, with the chat rooms as channels |
|
||||
| [AIM and ICQ](AIM-and-ICQ) | the OSCAR server: AIM and ICQ clients, buddies, IMs and chat rooms |
|
||||
| [MSN Messenger](MSN-Messenger) | the MSN server: MSN Messenger 1.0 to 4.7, contacts and IMs |
|
||||
| [MRC](MRC) | Multi Relay Chat: chat rooms shared with other BBSes |
|
||||
| [Finger and gopher](Finger-and-Gopher) | who is on, and the BBS in gopherspace |
|
||||
| [Time](Time) | NTP, NTS and PTP: the clock following time servers, and serving time |
|
||||
|
||||
+7
-1
@@ -54,7 +54,7 @@ up to 20 at once. Joining shows the room's last 20 lines.
|
||||
|---|---|
|
||||
| `PRIVMSG #room :text` | a line in the room |
|
||||
| `/me waves` (CTCP ACTION) | `* alice waves` |
|
||||
| `PRIVMSG nick :text` | a message to that user's nodes |
|
||||
| `PRIVMSG nick :text` | a message to that user's nodes; to one not on, [kept](Chat-and-Paging#private-messages) for them (`301` says so) |
|
||||
| a caller's node message | a `PRIVMSG` to you |
|
||||
| `NAMES`, `WHO`, `WHOIS` | who is in a room, on which node and how (`bob!telnet@node3`) |
|
||||
| `LIST` | the rooms in use |
|
||||
@@ -68,6 +68,10 @@ stripped from lines going into the rooms.
|
||||
A sysop is told of a page by a `NOTICE`. Joining `#sysop-N` answers the
|
||||
page from node N, just as `/answer` does in the BBS's chat.
|
||||
|
||||
Messages kept for you while you were away come as `PRIVMSG`s once you
|
||||
log in, each with its time: as `server-time` if your client takes it,
|
||||
otherwise at the start of the line.
|
||||
|
||||
The server offers the IRCv3 capabilities `sasl`, `server-time` (the time
|
||||
of each line, the history replayed on join included), `echo-message`,
|
||||
`multi-prefix` and `userhost-in-names`.
|
||||
@@ -117,6 +121,8 @@ answers come as notices.
|
||||
| `KEYS`, `KEYS ADD` *password key*, `KEYS DEL` *n* | your [SSH keys](SSH). Adding one asks for your password, since a key opens your account |
|
||||
| `TOKENS`, `TOKENS REVOKE` *id* | your [HTTP API](HTTP-API) tokens |
|
||||
| `ROOMS`; `ROOM ADD`\|`DEL`\|`TOPIC` *#room* | the [permanent rooms](#permanent-rooms); making them (the sysop) |
|
||||
| `FRIENDS`, `FRIENDS ADD`\|`DEL` *nick* | your [friends list](Chat-and-Paging#friends), and who on it is on |
|
||||
| `HISTORY`, `HISTORY` *nick* [*lines*] | those you have talked with; your last lines with one (50, up to 500) |
|
||||
|
||||
The same checks apply as on the BBS: an alias that is someone's name is
|
||||
refused, and so is a setting's wrong value. A wrong password (`KEYS
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
The BBS has an MSN Messenger server (MSNP, the protocol of Microsoft's
|
||||
MSN Messenger), beside its [IRC](IRC) and [AIM](AIM-and-ICQ) servers and
|
||||
on the same chat. Someone signed in with MSN Messenger 1.0 to 4.7 or
|
||||
Windows Messenger 4.x sees their BBS friends as contacts and IMs anyone on
|
||||
the BBS: other MSN users, IRC and AIM users, and callers on telnet, SSH,
|
||||
3270s and the web terminal.
|
||||
|
||||
```ini
|
||||
[msn]
|
||||
address = :1863
|
||||
host = msn.example.org:1863
|
||||
domain = msn.example.org
|
||||
```
|
||||
|
||||
| Setting | Default | What it sets |
|
||||
|---|---|---|
|
||||
| `address` | `:1863` | where to listen |
|
||||
| `host` | the address each client came to | where clients are sent for conversations (`host:port`); set it behind NAT |
|
||||
| `domain` | `bbs.invalid` | users' handles are `name@domain` |
|
||||
| `max_clients` | `256` | connections at once |
|
||||
| `max_per_ip` | `16` | from one address (each conversation is a connection) |
|
||||
| `system` | `BBS` | the name the BBS's notices come from |
|
||||
| `site` | none | a web address the client's links (inbox, profiles) open |
|
||||
|
||||
One port serves the whole of it: sign-in, the contact list and presence
|
||||
(the "notification server"), and the conversations ("switchboards").
|
||||
|
||||
## Versions served
|
||||
|
||||
MSNP2 to MSNP7: MSN Messenger 1.0 to 4.7, Windows Messenger 4.0 to 4.7,
|
||||
and third-party clients that speak those versions. They sign in by MD5
|
||||
(MSN 1.0 by the password itself) over plain TCP. MSN Messenger 5.0 and
|
||||
later, and Windows Live Messenger, sign in by Passport over HTTPS, which
|
||||
is not served yet: they are told the version is not supported, and the
|
||||
log says so.
|
||||
|
||||
## Pointing a client at the BBS
|
||||
|
||||
The clients were made for Microsoft's servers, so each must be pointed
|
||||
at the BBS:
|
||||
|
||||
- MSN Messenger 1.0 to 4.7: the `Server` value (a string) under
|
||||
`HKEY_CURRENT_USER\Software\Microsoft\MessengerService` in the
|
||||
registry, set to the BBS's host (with `:1863` if the port is another).
|
||||
A hosts file entry sending `messenger.hotmail.com` to the BBS may also
|
||||
work. Neither has been tried with the real clients yet.
|
||||
- Third-party clients (aMSN, Miranda, Trillian and others) take a server
|
||||
and port in the account's settings.
|
||||
|
||||
The deny list and bans in `[security]` apply as they do everywhere else.
|
||||
|
||||
## Signing in
|
||||
|
||||
Every MSN user is a BBS user. They sign in with `name@domain` as the
|
||||
e-mail address (a name with spaces may be typed with or without them,
|
||||
`CarolAnn@msn.example.org`) and their BBS password. The domain part is not
|
||||
checked, so a client that insists on `@hotmail.com` (MSN 1.0) works too.
|
||||
Failed sign-ins count towards the throttle and the hack log, like any
|
||||
other login, and the user's access level must allow chat. One account is
|
||||
signed in on one MSN client at a time: signing in again signs the older
|
||||
one out.
|
||||
|
||||
MSN clients send the password as an MD5 digest, which the BBS's password
|
||||
hashes can't check. So the BBS keeps each account's MSN digest too, made
|
||||
whenever the password is known: when the account is made, when its
|
||||
password is set, and at any login by password. An account from before
|
||||
`[msn]` was set up has none yet: its user logs in once some other way
|
||||
(telnet, SSH, IRC, AIM, the web) and can then sign in with MSN. The log
|
||||
says so when that is why a sign-in failed. The digest is kept only while
|
||||
`[msn]` is set up. MSN's challenge for an account is the same each time,
|
||||
as it was on Microsoft's servers, so anyone who saw a sign-in on the wire
|
||||
(or read the digest from the database) could sign in by MSN as that
|
||||
user. The connection is not encrypted.
|
||||
|
||||
## Contacts
|
||||
|
||||
The contact list is the user's [friends list](Chat-and-Paging#friends),
|
||||
the same list the BBS's chat, IRC and AIM show, with its groups (MSN
|
||||
Messenger 4.6 and later show them). A contact is always a BBS user;
|
||||
adding anyone else is refused. A friend added elsewhere comes to a
|
||||
client that is on at once, and one added or removed on MSN is on or off
|
||||
the list everywhere. Someone who adds an MSN user is on their reverse
|
||||
list, so the client asks "X has added you to their contact list".
|
||||
|
||||
The block list is the user's [blocked list](Chat-and-Paging#blocking),
|
||||
shared with the chat's `/block`: a blocked user's messages are refused
|
||||
however they come, and the user appears offline to them. "Only people on
|
||||
my Allow List can see my status" shows the user offline to those not on
|
||||
their friends list.
|
||||
|
||||
A contact is online while they are on the BBS by any route: with the
|
||||
status their MSN client set (busy, away, appearing offline...), or plain
|
||||
online on any other route.
|
||||
|
||||
## Conversations
|
||||
|
||||
An IM to an MSN user opens a conversation on their client as usual. An
|
||||
IM to a BBS user on another route puts them in the conversation at once:
|
||||
what is said reaches them as a private message (a `PRIVMSG` on IRC, an
|
||||
IM on AIM, a message line on a terminal), and what they send back comes
|
||||
into it. A private message from someone not on MSN opens a conversation
|
||||
with them on the client. Conversations of several MSN users work as they
|
||||
did on Microsoft's servers; typing notices and invitations pass between
|
||||
MSN clients, not to other routes.
|
||||
|
||||
Every line is [kept](Chat-and-Paging#private-messages). One to a user who
|
||||
isn't on is kept for them, and the sender told so (once); they get it
|
||||
when they next log in. Lines kept for an MSN user come when they sign in,
|
||||
in a conversation from each sender, marked with when they were sent. The
|
||||
BBS's notices (new mail, a page for the sysop) come from the `system`
|
||||
name. Calling someone who is offline is refused, as on Microsoft's
|
||||
servers: to leave a message for them, use their conversation while it is
|
||||
open, or another route.
|
||||
@@ -34,6 +34,7 @@
|
||||
- [Chat and paging](Chat-and-Paging)
|
||||
- [IRC](IRC)
|
||||
- [AIM and ICQ](AIM-and-ICQ)
|
||||
- [MSN Messenger](MSN-Messenger)
|
||||
- [MRC](MRC)
|
||||
- [Finger and gopher](Finger-and-Gopher)
|
||||
- [Time: NTP, NTS and PTP](Time)
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 AtomForge Contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,192 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
|
||||
// Type is an atom's argument type, as ADA.BIN gives it. It decides how the
|
||||
// compiler reads the atom's argument and how the decompiler shows it.
|
||||
type Type uint8
|
||||
|
||||
const (
|
||||
TypeRaw Type = 0x01 // bytes, shown as hex
|
||||
TypeDword Type = 0x02 // a number, big-endian in as few bytes as it needs
|
||||
TypeString Type = 0x03 // text
|
||||
TypeBool Type = 0x04 // yes / no
|
||||
TypeGID Type = 0x05 // a global id: 32-105, 1-0-1329
|
||||
TypeStream Type = 0x06 // a nested atom stream (the act_ atoms' actions)
|
||||
TypeObject Type = 0x07 // an object type and title: <trigger, "OK">
|
||||
TypeOrient Type = 0x08 // an orientation code: vff, hef...
|
||||
TypeToken Type = 0x09 // a two-character token, then data: <"pE">
|
||||
TypeCriterion Type = 0x0A // an action criterion: select, close, 1001...
|
||||
TypeAlert Type = 0x0B // an alert type and its text: <info, "Done.">
|
||||
TypeAtom Type = 0x0C // the name of another atom (two bytes)
|
||||
TypeByteList Type = 0x0D // numbers, a byte each (the if_ atoms)
|
||||
TypeIgnore Type = 0x0E // compiler-internal (the large-atom atoms)
|
||||
TypeVarNumber Type = 0x0F // a variable letter and a number: <A, 5>
|
||||
TypeVarString Type = 0x10 // a variable letter and a string: <A, "x">
|
||||
TypeVar Type = 0x11 // a variable letter, A-Z
|
||||
TypeList Type = 0x12 // several values: mat_size <25, 1, 32>
|
||||
TypeEnum Type = 0x13 // a named value or values or'd: center_center
|
||||
TypeType14 Type = 0x14 // (de_typed_data, mat_spacing...)
|
||||
TypeType15 Type = 0x15 // (mip_folder_id...)
|
||||
)
|
||||
|
||||
// Flags are an atom's layout flags: where the decompiler indents.
|
||||
type Flags uint8
|
||||
|
||||
const (
|
||||
FlagIndent Flags = 1 << iota // the atoms after this one are indented
|
||||
FlagOutdent // this atom and those after it are outdented
|
||||
FlagEOS // this atom ends a stream
|
||||
)
|
||||
|
||||
// Atom is one entry of the atom table.
|
||||
type Atom struct {
|
||||
Proto uint8
|
||||
Num uint8
|
||||
Name string
|
||||
Type Type
|
||||
Flags Flags
|
||||
}
|
||||
|
||||
// Protocol numbers (the FDO91 manual's "protocols"; NINA's atoms table for
|
||||
// those the manual doesn't cover).
|
||||
const (
|
||||
ProtoUNI = 0x00 // universal: stream control
|
||||
ProtoMAN = 0x01 // display manager
|
||||
ProtoACT = 0x02 // actions
|
||||
ProtoDE = 0x03 // data extraction
|
||||
ProtoBUF = 0x04 // buffer
|
||||
ProtoIDB = 0x05 // local database
|
||||
ProtoXFER = 0x07 // file transfer
|
||||
ProtoFM = 0x08 // file manager
|
||||
ProtoLM = 0x09 // list manager
|
||||
ProtoCM = 0x0A // code manager
|
||||
ProtoCHAT = 0x0B
|
||||
ProtoVAR = 0x0C // variables
|
||||
ProtoASYNC = 0x0D
|
||||
ProtoSM = 0x0E // shorthand
|
||||
ProtoIF = 0x0F // conditionals
|
||||
ProtoMAT = 0x10 // object attributes
|
||||
ProtoMIP = 0x11 // mail
|
||||
ProtoMMI = 0x14 // multimedia
|
||||
ProtoIMGXFER = 0x15
|
||||
ProtoIMAGE = 0x16
|
||||
ProtoCHART = 0x17
|
||||
ProtoMORG = 0x18
|
||||
ProtoRICH = 0x19 // rich text
|
||||
ProtoEXAPI = 0x1A
|
||||
ProtoDOD = 0x1B // data on demand
|
||||
ProtoRADIO = 0x1C
|
||||
ProtoPICTALK = 0x1D
|
||||
ProtoIRC = 0x1E
|
||||
ProtoDOC = 0x1F
|
||||
ProtoCCL = 0x22
|
||||
ProtoP3 = 0x23
|
||||
ProtoAD = 0x27
|
||||
ProtoAPP = 0x28
|
||||
ProtoMT = 0x2A // tool manager
|
||||
ProtoVRM = 0x2F // Visual Rainman
|
||||
ProtoWWW = 0x30
|
||||
ProtoJAVA = 0x31
|
||||
ProtoHFS = 0x33 // host forms server
|
||||
ProtoBLANK = 0x34
|
||||
ProtoVID = 0x35
|
||||
ProtoACTIVEX = 0x36
|
||||
ProtoGALLERY = 0x38
|
||||
ProtoDICE = 0x39
|
||||
ProtoSPELL = 0x3D
|
||||
ProtoADP = 0x42
|
||||
ProtoBUDDY = 0x49
|
||||
ProtoHTMLVW = 0x4B
|
||||
)
|
||||
|
||||
// protoNames are the protocols' atom-name prefixes.
|
||||
var protoNames = map[uint8]string{
|
||||
ProtoUNI: "uni", ProtoMAN: "man", ProtoACT: "act", ProtoDE: "de",
|
||||
ProtoBUF: "buf", ProtoIDB: "idb", ProtoXFER: "xfer", ProtoFM: "fm",
|
||||
ProtoLM: "lm", ProtoCM: "cm", ProtoCHAT: "chat", ProtoVAR: "var",
|
||||
ProtoASYNC: "async", ProtoSM: "sm", ProtoIF: "if", ProtoMAT: "mat",
|
||||
ProtoMIP: "mip", ProtoMMI: "mmi", ProtoIMGXFER: "imgxfer",
|
||||
ProtoIMAGE: "image", ProtoCHART: "chart", ProtoMORG: "morg",
|
||||
ProtoRICH: "rich", ProtoEXAPI: "exapi", ProtoDOD: "dod",
|
||||
ProtoRADIO: "radio", ProtoPICTALK: "pictalk", ProtoIRC: "irc",
|
||||
ProtoDOC: "doc", ProtoCCL: "ccl", ProtoP3: "p3", ProtoAD: "ad",
|
||||
ProtoAPP: "app", ProtoMT: "mt", ProtoVRM: "vrm", ProtoWWW: "www",
|
||||
ProtoJAVA: "java", ProtoHFS: "hfs", ProtoBLANK: "blank",
|
||||
ProtoVID: "vid", ProtoACTIVEX: "activex", ProtoGALLERY: "gallery",
|
||||
ProtoDICE: "dice", ProtoSPELL: "spell", ProtoADP: "adp",
|
||||
ProtoBUDDY: "buddy", ProtoHTMLVW: "htmlview",
|
||||
}
|
||||
|
||||
// ProtocolName is a protocol's prefix ("man" for 1), or "" if it has none.
|
||||
func ProtocolName(proto uint8) string { return protoNames[proto] }
|
||||
|
||||
var (
|
||||
tableOnce sync.Once
|
||||
byName map[string]*Atom
|
||||
byNum map[uint16]*Atom
|
||||
)
|
||||
|
||||
// moreAtoms are atoms of AOL 4.0's protocols that the ADA.BIN dump lacks,
|
||||
// with their numbers as Ada32 compiled them in AtomForge's corpus.
|
||||
var moreAtoms = []Atom{
|
||||
{ProtoGALLERY, 6, "gallery_open", TypeRaw, 0},
|
||||
{ProtoGALLERY, 7, "gallery_send_img_to_mail", TypeRaw, 0},
|
||||
{ProtoDICE, 0, "dice_set_context_tool", TypeDword, 0},
|
||||
{ProtoDICE, 2, "dice_end_context", TypeRaw, 0},
|
||||
{ProtoDICE, 11, "dice_disconnect", TypeRaw, 0},
|
||||
{ProtoDICE, 19, "dice_send_message", TypeDword, 0},
|
||||
{ProtoDICE, 39, "dice_access_search_form", TypeRaw, 0},
|
||||
{ProtoDICE, 41, "dice_disp_connect_summary", TypeRaw, 0},
|
||||
{ProtoSPELL, 0, "spell_rules_dlg", TypeRaw, 0},
|
||||
{ProtoBUDDY, 0, "buddy_action_command", TypeRaw, 0},
|
||||
{ProtoHTMLVW, 0, "htmlview_manage", TypeRaw, 0},
|
||||
}
|
||||
|
||||
func loadTable() {
|
||||
byName = make(map[string]*Atom, len(atomTable)+len(moreAtoms))
|
||||
byNum = make(map[uint16]*Atom, len(atomTable)+len(moreAtoms))
|
||||
add := func(a *Atom) {
|
||||
byName[a.Name] = a
|
||||
byNum[uint16(a.Proto)<<8|uint16(a.Num)] = a
|
||||
}
|
||||
for i := range atomTable {
|
||||
add(&atomTable[i])
|
||||
}
|
||||
for i := range moreAtoms {
|
||||
add(&moreAtoms[i])
|
||||
}
|
||||
}
|
||||
|
||||
// Lookup finds an atom by name (case doesn't matter, and an "atom$"
|
||||
// prefix, as the manual writes them, is allowed).
|
||||
func Lookup(name string) (*Atom, bool) {
|
||||
tableOnce.Do(loadTable)
|
||||
name = strings.ToLower(name)
|
||||
name = strings.TrimPrefix(name, "atom$")
|
||||
a, ok := byName[name]
|
||||
return a, ok
|
||||
}
|
||||
|
||||
// LookupNum finds an atom by protocol and number.
|
||||
func LookupNum(proto, num uint8) (*Atom, bool) {
|
||||
tableOnce.Do(loadTable)
|
||||
a, ok := byNum[uint16(proto)<<8|uint16(num)]
|
||||
return a, ok
|
||||
}
|
||||
|
||||
// Atoms is the whole table.
|
||||
func Atoms() []Atom { return append(atomTable[:len(atomTable):len(atomTable)], moreAtoms...) }
|
||||
|
||||
// MustLookup is Lookup for names known when the program is written; it
|
||||
// panics on a name that isn't in the table.
|
||||
func MustLookup(name string) *Atom {
|
||||
a, ok := Lookup(name)
|
||||
if !ok {
|
||||
panic("fdo: no atom " + name)
|
||||
}
|
||||
return a
|
||||
}
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,244 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// CompileError is an atom the compiler couldn't encode.
|
||||
type CompileError struct {
|
||||
Line int
|
||||
Atom string
|
||||
Msg string
|
||||
}
|
||||
|
||||
func (e *CompileError) Error() string {
|
||||
return fmt.Sprintf("fdo: line %d: %s: %s", e.Line, e.Atom, e.Msg)
|
||||
}
|
||||
|
||||
// Compile compiles FDO91 source to an atom stream, byte for byte as AOL's
|
||||
// Ada32.dll does.
|
||||
func Compile(src string) ([]byte, error) {
|
||||
frames, err := CompileFrames(src)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return Encode(frames), nil
|
||||
}
|
||||
|
||||
// MustCompile is Compile for source known when the program is written.
|
||||
func MustCompile(src string) []byte {
|
||||
b, err := Compile(src)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// CompileFrames compiles source to its atoms, not yet encoded.
|
||||
func CompileFrames(src string) ([]Frame, error) {
|
||||
nodes, err := Parse(src)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return NodesFrames(nodes)
|
||||
}
|
||||
|
||||
// NodesFrames compiles parsed atoms.
|
||||
func NodesFrames(nodes []*Node) ([]Frame, error) {
|
||||
out := make([]Frame, 0, len(nodes))
|
||||
for _, n := range nodes {
|
||||
f, err := nodeFrame(n)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, f)
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func nodeFrame(n *Node) (Frame, error) {
|
||||
fail := func(format string, a ...any) (Frame, error) {
|
||||
return Frame{}, &CompileError{n.Line, n.Name, fmt.Sprintf(format, a...)}
|
||||
}
|
||||
if n.Name == "the_unknown" {
|
||||
args := n.Args
|
||||
if len(args) < 2 || args[0].Kind != KindNum || args[1].Kind != KindNum ||
|
||||
args[0].Num < 0 || args[0].Num > 127 || args[1].Num < 0 || args[1].Num > 255 {
|
||||
return fail("needs <protocol, atom, data...>")
|
||||
}
|
||||
var d []byte
|
||||
for _, v := range args[2:] {
|
||||
b, err := rawValue(v)
|
||||
if err != nil {
|
||||
return fail("%v", err)
|
||||
}
|
||||
d = append(d, b...)
|
||||
}
|
||||
return Frame{uint8(args[0].Num), uint8(args[1].Num), nonNil(d)}, nil
|
||||
}
|
||||
a, ok := Lookup(n.Name)
|
||||
if !ok {
|
||||
return fail("unrecognized atom")
|
||||
}
|
||||
d, err := encodeArgs(a, n.Args)
|
||||
if err != nil {
|
||||
return fail("%v", err)
|
||||
}
|
||||
if len(d) > 0xFFFF {
|
||||
return fail("argument is %d bytes; the most is 65535", len(d))
|
||||
}
|
||||
return Frame{a.Proto, a.Num, nonNil(d)}, nil
|
||||
}
|
||||
|
||||
func nonNil(b []byte) []byte {
|
||||
if b == nil {
|
||||
return []byte{}
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// rawValue is a the_unknown byte: hex, a number (one byte) or a string.
|
||||
func rawValue(v Value) ([]byte, error) {
|
||||
switch v.Kind {
|
||||
case KindHex, KindString:
|
||||
return v.Bytes, nil
|
||||
case KindNum:
|
||||
return []byte{byte(v.Num)}, nil
|
||||
}
|
||||
return nil, fmt.Errorf("the_unknown data must be hex, numbers or strings")
|
||||
}
|
||||
|
||||
// number is n big-endian in as few bytes as it needs (at least one).
|
||||
func number(n int64) []byte {
|
||||
u := uint32(n)
|
||||
if n < 0 {
|
||||
u = uint32(int32(n))
|
||||
}
|
||||
switch {
|
||||
case u <= 0xFF:
|
||||
return []byte{byte(u)}
|
||||
case u <= 0xFFFF:
|
||||
return []byte{byte(u >> 8), byte(u)}
|
||||
case u <= 0xFFFFFF:
|
||||
return []byte{byte(u >> 16), byte(u >> 8), byte(u)}
|
||||
}
|
||||
return []byte{byte(u >> 24), byte(u >> 16), byte(u >> 8), byte(u)}
|
||||
}
|
||||
|
||||
// fixed is n big-endian in w bytes.
|
||||
func fixed(n int64, w int) []byte {
|
||||
b := make([]byte, w)
|
||||
for i := w - 1; i >= 0; i-- {
|
||||
b[i] = byte(n)
|
||||
n >>= 8
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// gidNumber is a global id as a number: a-b is a<<16|b, a-b-c a<<24|b<<16|c.
|
||||
func gidNumber(g []int64) int64 {
|
||||
if len(g) == 2 {
|
||||
return g[0]<<16 | g[1]&0xFFFF
|
||||
}
|
||||
return g[0]<<24 | (g[1]&0xFF)<<16 | g[2]&0xFFFF
|
||||
}
|
||||
|
||||
// encodeArgs encodes an atom's argument.
|
||||
func encodeArgs(a *Atom, args []Value) ([]byte, error) {
|
||||
if len(args) == 0 {
|
||||
return nil, nil
|
||||
}
|
||||
var out []byte
|
||||
for i, v := range args {
|
||||
b, err := encodeValue(a, i, v)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, b...)
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// encodeValue encodes the i'th value of an atom's argument.
|
||||
func encodeValue(a *Atom, i int, v Value) ([]byte, error) {
|
||||
switch v.Kind {
|
||||
case KindHex, KindString:
|
||||
return v.Bytes, nil
|
||||
case KindNum:
|
||||
if w := numWidth(a, i); w > 0 {
|
||||
return fixed(v.Num, w), nil
|
||||
}
|
||||
n := v.Num
|
||||
if n > 0x7FFFFFFF {
|
||||
n = 0x7FFFFFFF
|
||||
}
|
||||
return number(n), nil
|
||||
case KindGID:
|
||||
if len(v.GID) == 2 && v.GID[0] == 0 && isTokenType(a) {
|
||||
return fixed(v.GID[1], 2), nil
|
||||
}
|
||||
return number(gidNumber(v.GID)), nil
|
||||
case KindWord:
|
||||
return encodeWord(a, i, v.Text)
|
||||
case KindPipe:
|
||||
var or uint64
|
||||
width := 0
|
||||
for _, p := range v.Parts {
|
||||
var b []byte
|
||||
var err error
|
||||
switch p.Kind {
|
||||
case KindWord:
|
||||
b, err = encodeWord(a, i, p.Text)
|
||||
case KindNum, KindHex:
|
||||
b, err = encodeValue(a, i, p)
|
||||
default:
|
||||
err = fmt.Errorf("only words and numbers can be or'd")
|
||||
}
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var n uint64
|
||||
for _, c := range b {
|
||||
n = n<<8 | uint64(c)
|
||||
}
|
||||
or |= n
|
||||
width = max(width, len(b))
|
||||
}
|
||||
if w := pipeWidth(a); w > 0 {
|
||||
width = w
|
||||
}
|
||||
return fixed(int64(or), width), nil
|
||||
case KindStream:
|
||||
frames, err := NodesFrames(v.Stream)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return Encode(frames), nil
|
||||
}
|
||||
return nil, fmt.Errorf("bad value")
|
||||
}
|
||||
|
||||
func isTokenType(a *Atom) bool { return a.Type == TypeToken }
|
||||
|
||||
// encodeWord encodes a word: one of the atom's named values, yes or no, a
|
||||
// variable letter, or an atom's name.
|
||||
func encodeWord(a *Atom, i int, w string) ([]byte, error) {
|
||||
lw := strings.ToLower(w)
|
||||
if b, ok := enumValue(a, i, lw); ok {
|
||||
return b, nil
|
||||
}
|
||||
switch lw {
|
||||
case "yes", "true":
|
||||
return []byte{1}, nil
|
||||
case "no", "false":
|
||||
return []byte{0}, nil
|
||||
}
|
||||
if len(w) == 1 && w[0] >= 'A' && w[0] <= 'Z' {
|
||||
return []byte{w[0] - 'A'}, nil
|
||||
}
|
||||
if r, ok := Lookup(lw); ok {
|
||||
return []byte{r.Proto, r.Num}, nil
|
||||
}
|
||||
return nil, fmt.Errorf("unknown word %q", w)
|
||||
}
|
||||
@@ -0,0 +1,239 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"bufio"
|
||||
"bytes"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// The corpus tests run against AtomForge's golden files (MIT License:
|
||||
// LICENSE.atomforge): FDO91 source and what Ada32.dll compiled it to.
|
||||
// testdata/golden holds 93 of its 1,889 forms, chosen to have as many
|
||||
// different atoms as they can, and testdata/livecapture 44 streams captured
|
||||
// from a live client; FDO_CORPUS names the directory with all of them
|
||||
// (atomforge-fdo-java/src/test/resources/golden), and the master list of
|
||||
// 74,369 single atoms that is there too.
|
||||
func corpusDir() string {
|
||||
if d := os.Getenv("FDO_CORPUS"); d != "" {
|
||||
return d
|
||||
}
|
||||
return "testdata/golden"
|
||||
}
|
||||
|
||||
func corpusPairs(t *testing.T) []string {
|
||||
files, _ := filepath.Glob(filepath.Join(corpusDir(), "*.txt"))
|
||||
live, _ := filepath.Glob("testdata/livecapture/*.txt")
|
||||
files = append(files, live...)
|
||||
var out []string
|
||||
for _, f := range files {
|
||||
base := strings.TrimSuffix(f, ".txt")
|
||||
if _, err := os.Stat(base + ".bin"); err == nil {
|
||||
out = append(out, base)
|
||||
}
|
||||
}
|
||||
if len(out) == 0 {
|
||||
t.Skip("no corpus")
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func firstDiff(a, b []byte) int {
|
||||
for i := 0; i < len(a) && i < len(b); i++ {
|
||||
if a[i] != b[i] {
|
||||
return i
|
||||
}
|
||||
}
|
||||
return min(len(a), len(b))
|
||||
}
|
||||
|
||||
// TestCorpusCompile compiles each source and checks it against Ada32's bytes.
|
||||
func TestCorpusCompile(t *testing.T) {
|
||||
bad := 0
|
||||
for _, base := range corpusPairs(t) {
|
||||
src, _ := os.ReadFile(base + ".txt")
|
||||
want, _ := os.ReadFile(base + ".bin")
|
||||
got, err := Compile(string(src))
|
||||
if err != nil {
|
||||
bad++
|
||||
if bad <= 20 {
|
||||
t.Errorf("%s: %v", filepath.Base(base), err)
|
||||
}
|
||||
continue
|
||||
}
|
||||
if !bytes.Equal(got, want) {
|
||||
bad++
|
||||
if bad <= 20 {
|
||||
i := firstDiff(got, want)
|
||||
t.Errorf("%s: differs at %d: got % x, want % x", filepath.Base(base), i,
|
||||
got[max(0, i-8):min(len(got), i+16)], want[max(0, i-8):min(len(want), i+16)])
|
||||
}
|
||||
}
|
||||
}
|
||||
if bad > 0 {
|
||||
t.Errorf("%d files differ", bad)
|
||||
}
|
||||
}
|
||||
|
||||
// TestCorpusRoundTrip decodes each binary, decompiles it and compiles the
|
||||
// text again: the bytes must come back the same.
|
||||
func TestCorpusRoundTrip(t *testing.T) {
|
||||
bad := 0
|
||||
for _, base := range corpusPairs(t) {
|
||||
want, _ := os.ReadFile(base + ".bin")
|
||||
src, err := Decompile(want)
|
||||
if err == nil {
|
||||
var got []byte
|
||||
got, err = Compile(src)
|
||||
if err == nil && !bytes.Equal(got, want) {
|
||||
i := firstDiff(got, want)
|
||||
err = fmt.Errorf("differs at %d: got % x, want % x", i,
|
||||
got[max(0, i-8):min(len(got), i+16)], want[max(0, i-8):min(len(want), i+16)])
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
bad++
|
||||
if bad <= 20 {
|
||||
t.Errorf("%s: %v", filepath.Base(base), err)
|
||||
}
|
||||
}
|
||||
}
|
||||
if bad > 0 {
|
||||
t.Errorf("%d files don't round-trip", bad)
|
||||
}
|
||||
}
|
||||
|
||||
// TestCorpusDecompile counts how many decompiled files read as their
|
||||
// source does (the text, not just the bytes), indentation aside.
|
||||
func TestCorpusDecompile(t *testing.T) {
|
||||
same, n := 0, 0
|
||||
lines, sameLines := 0, 0
|
||||
diffs := map[string]int{}
|
||||
ex := map[string]string{}
|
||||
for _, base := range corpusPairs(t) {
|
||||
bin, _ := os.ReadFile(base + ".bin")
|
||||
want, _ := os.ReadFile(base + ".txt")
|
||||
got, err := Decompile(bin)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
n++
|
||||
if trimLines(got) == trimLines(string(want)) {
|
||||
same++
|
||||
}
|
||||
g := strings.Split(strings.TrimRight(got, "\n"), "\n")
|
||||
w := strings.Split(strings.TrimRight(string(want), "\n"), "\n")
|
||||
if len(g) != len(w) {
|
||||
continue
|
||||
}
|
||||
for i := range w {
|
||||
lines++
|
||||
g[i], w[i] = strings.TrimSpace(g[i]), strings.TrimSpace(w[i])
|
||||
if g[i] == w[i] {
|
||||
sameLines++
|
||||
continue
|
||||
}
|
||||
name := strings.Fields(w[i])[0]
|
||||
diffs[name]++
|
||||
ex[name] = fmt.Sprintf("got %q want %q", strings.TrimSpace(g[i]), strings.TrimSpace(w[i]))
|
||||
}
|
||||
}
|
||||
t.Logf("%d of %d files, %d of %d lines read as their source", same, n, sameLines, lines)
|
||||
type kv struct {
|
||||
k string
|
||||
v int
|
||||
}
|
||||
var kvs []kv
|
||||
for k, v := range diffs {
|
||||
kvs = append(kvs, kv{k, v})
|
||||
}
|
||||
sort.Slice(kvs, func(i, j int) bool { return kvs[i].v > kvs[j].v })
|
||||
for i, e := range kvs {
|
||||
if i >= 25 || !testing.Verbose() {
|
||||
break
|
||||
}
|
||||
t.Logf("%6d %s: %s", e.v, e.k, ex[e.k])
|
||||
}
|
||||
}
|
||||
|
||||
// TestMasterAtomList compiles AtomForge's list of 74,000 single atoms,
|
||||
// each as Ada32 compiled it (or refused to).
|
||||
func TestMasterAtomList(t *testing.T) {
|
||||
dir := corpusDir()
|
||||
src, err := os.ReadFile(filepath.Join(dir, "master_atom_list.fdo"))
|
||||
if err != nil {
|
||||
t.Skip("no master_atom_list")
|
||||
}
|
||||
bin, _ := os.ReadFile(filepath.Join(dir, "master_atom_list.bin"))
|
||||
idx, _ := os.Open(filepath.Join(dir, "master_atom_list.idx"))
|
||||
defer idx.Close()
|
||||
lines := strings.Split(string(src), "\n")
|
||||
sc := bufio.NewScanner(idx)
|
||||
sc.Buffer(nil, 1<<20)
|
||||
bad, n, refused := 0, 0, 0
|
||||
perAtom := map[string]int{}
|
||||
ex := map[string]string{}
|
||||
for sc.Scan() {
|
||||
l := sc.Text()
|
||||
if strings.HasPrefix(l, "#") || l == "" {
|
||||
continue
|
||||
}
|
||||
f := strings.SplitN(l, ",", 3)
|
||||
if f[0] == "E" {
|
||||
refused++
|
||||
continue
|
||||
}
|
||||
ln, _ := strconv.Atoi(f[0])
|
||||
off, _ := strconv.Atoi(f[1])
|
||||
size, _ := strconv.Atoi(f[2])
|
||||
want := bin[off : off+size]
|
||||
line := lines[ln-1]
|
||||
n++
|
||||
got, err := Compile(line)
|
||||
if err == nil && !bytes.Equal(got, want) {
|
||||
err = fmt.Errorf("got % x, want % x", got, want)
|
||||
}
|
||||
if err != nil {
|
||||
bad++
|
||||
name := strings.Fields(line)[0]
|
||||
perAtom[name]++
|
||||
if _, ok := ex[name]; !ok {
|
||||
ex[name] = fmt.Sprintf("%.120s: %.200v", strings.TrimSpace(line), err)
|
||||
}
|
||||
}
|
||||
}
|
||||
type kv struct {
|
||||
k string
|
||||
v int
|
||||
}
|
||||
var kvs []kv
|
||||
for k, v := range perAtom {
|
||||
kvs = append(kvs, kv{k, v})
|
||||
}
|
||||
sort.Slice(kvs, func(i, j int) bool { return kvs[i].v > kvs[j].v })
|
||||
for i, e := range kvs {
|
||||
if i >= 60 {
|
||||
break
|
||||
}
|
||||
t.Errorf("%5d %s", e.v, ex[e.k])
|
||||
}
|
||||
if bad > 0 {
|
||||
t.Errorf("%d of %d atoms differ (%d refused by Ada32, skipped)", bad, n, refused)
|
||||
}
|
||||
t.Logf("%d atoms compiled (%d refused by Ada32, skipped)", n, refused)
|
||||
}
|
||||
|
||||
// trimLines is s without its indentation, which Ada32's disassembler
|
||||
// doesn't keep consistently.
|
||||
func trimLines(s string) string {
|
||||
l := strings.Split(strings.TrimSpace(s), "\n")
|
||||
for i := range l {
|
||||
l[i] = strings.TrimSpace(l[i])
|
||||
}
|
||||
return strings.Join(l, "\n")
|
||||
}
|
||||
@@ -0,0 +1,174 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Decompile turns an atom stream back into FDO91 source. Compiling the
|
||||
// text gives the same bytes back: where an argument has no nicer form that
|
||||
// does, it is shown as hex.
|
||||
func Decompile(b []byte) (string, error) {
|
||||
frames, err := Decode(b)
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
var sb strings.Builder
|
||||
writeFrames(&sb, frames, 0)
|
||||
return sb.String(), nil
|
||||
}
|
||||
|
||||
// DecompileFrames is Decompile for frames already decoded.
|
||||
func DecompileFrames(frames []Frame) string {
|
||||
var sb strings.Builder
|
||||
writeFrames(&sb, frames, 0)
|
||||
return sb.String()
|
||||
}
|
||||
|
||||
func writeFrames(sb *strings.Builder, frames []Frame, depth int) {
|
||||
writeStream(sb, frames, depth, false)
|
||||
}
|
||||
|
||||
// writeStream writes atoms a line each, indented by objects and streams as
|
||||
// Ada32 lays them out; a nested stream goes in < and >, four spaces in.
|
||||
func writeStream(sb *strings.Builder, frames []Frame, depth int, nested bool) {
|
||||
for _, f := range frames {
|
||||
a, known := f.Atom()
|
||||
var fl Flags
|
||||
if known && a.Type != TypeStream && (a.Proto == ProtoUNI || a.Flags&FlagEOS == 0) &&
|
||||
!(nested && a.Proto == ProtoUNI) {
|
||||
fl = a.Flags
|
||||
}
|
||||
if fl&FlagOutdent != 0 && depth > 0 {
|
||||
depth--
|
||||
}
|
||||
indent := strings.Repeat(" ", depth)
|
||||
sb.WriteString(indent)
|
||||
vals := frameValues(f)
|
||||
if !known {
|
||||
sb.WriteString("the_unknown")
|
||||
} else {
|
||||
sb.WriteString(a.Name)
|
||||
}
|
||||
if len(vals) == 1 && vals[0].Kind == KindStream {
|
||||
inner := strings.Repeat(" ", depth+2)
|
||||
sb.WriteString("\n" + inner + "<\n")
|
||||
writeStream(sb, vals[0].streamFrames, depth+2, true)
|
||||
sb.WriteString(inner + ">\n")
|
||||
} else {
|
||||
if len(vals) > 0 {
|
||||
sb.WriteString(" <")
|
||||
if known && a.Type == TypeVarString && len(vals) == 2 {
|
||||
// as Ada32 writes it: <A,"text">
|
||||
writeValue(sb, vals[0])
|
||||
sb.WriteString(",")
|
||||
writeValue(sb, vals[1])
|
||||
} else {
|
||||
writeValues(sb, vals)
|
||||
}
|
||||
sb.WriteString(">")
|
||||
}
|
||||
sb.WriteString("\n")
|
||||
}
|
||||
if fl&FlagIndent != 0 {
|
||||
depth++
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func writeValues(sb *strings.Builder, vals []Value) {
|
||||
for i, v := range vals {
|
||||
if i > 0 {
|
||||
sb.WriteString(", ")
|
||||
}
|
||||
writeValue(sb, v)
|
||||
}
|
||||
}
|
||||
|
||||
func writeValue(sb *strings.Builder, v Value) {
|
||||
switch v.Kind {
|
||||
case KindNum:
|
||||
sb.WriteString(strconv.FormatInt(v.Num, 10))
|
||||
case KindHex:
|
||||
for i, c := range v.Bytes {
|
||||
if i > 0 {
|
||||
sb.WriteString(", ")
|
||||
}
|
||||
fmt.Fprintf(sb, "%02xx", c)
|
||||
}
|
||||
case KindString:
|
||||
sb.WriteString(quote(v.Bytes))
|
||||
case KindWord:
|
||||
sb.WriteString(v.Text)
|
||||
case KindGID:
|
||||
for i, n := range v.GID {
|
||||
if i > 0 {
|
||||
sb.WriteByte('-')
|
||||
}
|
||||
sb.WriteString(strconv.FormatInt(n, 10))
|
||||
}
|
||||
case KindPipe:
|
||||
for i, p := range v.Parts {
|
||||
if i > 0 {
|
||||
sb.WriteString(" | ")
|
||||
}
|
||||
writeValue(sb, p)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// quote writes b as a string: printable ASCII as it is, the rest escaped.
|
||||
func quote(b []byte) string {
|
||||
var sb strings.Builder
|
||||
sb.WriteByte('"')
|
||||
for _, c := range b {
|
||||
switch {
|
||||
case c == '\\':
|
||||
sb.WriteString(`\\`)
|
||||
case c == '"':
|
||||
sb.WriteString(`\"`)
|
||||
case c == '\r':
|
||||
sb.WriteString(`\r`)
|
||||
case c == '\n':
|
||||
sb.WriteString(`\n`)
|
||||
case c == '\t':
|
||||
sb.WriteString(`\t`)
|
||||
case c >= 0x20 && c < 0x7F:
|
||||
sb.WriteByte(c)
|
||||
default:
|
||||
fmt.Fprintf(&sb, `\x%02x`, c)
|
||||
}
|
||||
}
|
||||
sb.WriteByte('"')
|
||||
return sb.String()
|
||||
}
|
||||
|
||||
// hexValue is data as hex bytes, which always compile back to themselves.
|
||||
func hexValue(d []byte) []Value { return []Value{{Kind: KindHex, Bytes: d}} }
|
||||
|
||||
// frameValues is the argument the decompiler shows for f: its nicest form
|
||||
// that compiles back to f's data.
|
||||
func frameValues(f Frame) []Value {
|
||||
a, ok := f.Atom()
|
||||
if !ok {
|
||||
vals := []Value{{Kind: KindNum, Num: int64(f.Proto)}, {Kind: KindNum, Num: int64(f.Num)}}
|
||||
if len(f.Data) > 0 {
|
||||
vals = append(vals, Value{Kind: KindHex, Bytes: f.Data})
|
||||
}
|
||||
return vals
|
||||
}
|
||||
if len(f.Data) == 0 {
|
||||
return nil
|
||||
}
|
||||
for _, vals := range candidates(a, f.Data) {
|
||||
if len(vals) == 1 && vals[0].Kind == KindStream {
|
||||
return vals
|
||||
}
|
||||
if b, err := encodeArgs(a, vals); err == nil && bytes.Equal(b, f.Data) {
|
||||
return vals
|
||||
}
|
||||
}
|
||||
return hexValue(f.Data)
|
||||
}
|
||||
@@ -0,0 +1,333 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// The named values atoms take: mat_position's center_center, a
|
||||
// man_start_object's trigger. From the FDO91 manual where it gives them,
|
||||
// AtomForge's compiler (MIT License: LICENSE.atomforge) for the rest, and
|
||||
// all checked against what Ada32.dll compiles them to (the corpus tests).
|
||||
|
||||
type namedValue struct {
|
||||
name string
|
||||
val uint32
|
||||
}
|
||||
|
||||
// enum is a set of named values: their width in bytes, and whether they
|
||||
// are flags to be or'd together. The first name of a value is the one the
|
||||
// decompiler writes.
|
||||
type enum struct {
|
||||
width int
|
||||
flags bool // or'd together
|
||||
desc bool // the decompiler writes the biggest first
|
||||
vals []namedValue
|
||||
}
|
||||
|
||||
func (e *enum) value(w string) (uint32, bool) {
|
||||
for _, v := range e.vals {
|
||||
if strings.TrimPrefix(v.name, "~") == w {
|
||||
return v.val, true
|
||||
}
|
||||
}
|
||||
return 0, false
|
||||
}
|
||||
|
||||
// name is the name the decompiler writes for v; a name written ~name is
|
||||
// one the compiler takes but Ada32's disassembler doesn't write.
|
||||
func (e *enum) name(v uint32) (string, bool) {
|
||||
for _, nv := range e.vals {
|
||||
if nv.val == v && nv.name[0] != '~' {
|
||||
return nv.name, true
|
||||
}
|
||||
}
|
||||
return "", false
|
||||
}
|
||||
|
||||
func nv(pairs ...any) []namedValue {
|
||||
out := make([]namedValue, 0, len(pairs)/2)
|
||||
for i := 0; i < len(pairs); i += 2 {
|
||||
out = append(out, namedValue{pairs[i].(string), uint32(pairs[i+1].(int))})
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
var (
|
||||
// object types (FDO91 manual, man_start_object)
|
||||
enumObject = &enum{width: 1, vals: nv(
|
||||
"org_group", 0, "ind_group", 1, "dms_list", 2, "sms_list", 3,
|
||||
"dss_list", 4, "sss_list", 5, "trigger", 6, "ornament", 7,
|
||||
"view", 8, "edit_view", 9, "boolean", 10, "select_boolean", 11,
|
||||
"range", 12, "select_range", 13, "variable", 14, "bad_object", 15,
|
||||
"root", 16, "tool_group", 17, "tab_group", 18, "tab_page", 19,
|
||||
"pictalk", 20, "www", 21, "split", 22, "organizer", 23, "tree", 24,
|
||||
"tab", 25, "progress", 26, "toolbar", 27, "slider", 28,
|
||||
// other names for the same
|
||||
"group", 0, "independent", 1, "dynamic_multi_list", 2,
|
||||
"static_multi_list", 3, "dynamic_list", 4, "static_list", 5,
|
||||
"editable_view", 9, "selectable_boolean", 11, "selectable_range", 13,
|
||||
"ruler", 15, "popup_menu", 16, "rich_text", 17, "multimedia", 18,
|
||||
"chart", 19)}
|
||||
|
||||
// action criteria (FDO91 manual, act_set_criterion)
|
||||
enumCriterion = &enum{width: 1, vals: nv(
|
||||
"void", 0, "select", 1, "close", 2, "~open", 3, "gain_focus", 4,
|
||||
"lose_focus", 5, "~cancel", 6, "~enter_free", 7, "~enter_paid", 8,
|
||||
"~create", 9, "~set_online", 10, "~set_offline", 11, "~restore", 12,
|
||||
"~minimize", 14, "~restore_from_maximize", 15, "~restore_from_minimize", 16,
|
||||
"~timeout", 17, "~screen_name_changed", 18, "~movie_over", 19, "~drop", 20,
|
||||
"~url_drop", 21, "~user_delete", 22, "~toggle_up", 23, "~activated", 24,
|
||||
"~deactivated", 25, "~popupmenu", 26, "~destroyed", 27,
|
||||
"~selection", 1)}
|
||||
|
||||
enumAlert = &enum{width: 1, vals: nv(
|
||||
"info", 1, "error", 2, "pop_info", 3, "pop_error", 4, "warning", 5,
|
||||
"pop_warning", 6, "yes_no", 7, "yes_no_cancel", 8)}
|
||||
|
||||
enumPosition = &enum{width: 1, vals: nv(
|
||||
"cascade", 0, "top_left", 1, "top_center", 2, "top_right", 3,
|
||||
"center_left", 4, "center_center", 5, "center_right", 6,
|
||||
"bottom_left", 7, "bottom_center", 8, "bottom_right", 9)}
|
||||
|
||||
enumLogObject = &enum{width: 1, vals: nv(
|
||||
"session_log", 0, "chat_log", 1, "im_log", 2, "no_log", 3)}
|
||||
|
||||
enumSortOrder = &enum{width: 1, vals: nv("normal", 0, "reverse", 1, "alphabetical", 2)}
|
||||
|
||||
enumFrameStyle = &enum{width: 2, vals: nv(
|
||||
"none", 0, "single_line_pop_out", 1, "single_line_pop_in", 2,
|
||||
"pop_in", 3, "pop_out", 4, "double_line", 5, "shadow", 6, "highlight", 7)}
|
||||
|
||||
enumTriggerStyle = &enum{width: 2, vals: nv(
|
||||
"default", 0, "place", 1, "rectangle", 2, "picture", 3, "framed", 4,
|
||||
"bottom_tab", 5, "plain_picture", 6, "group_state", 7)}
|
||||
|
||||
enumFont = &enum{width: 1, vals: nv(
|
||||
"arial", 0, "courier", 1, "times_roman", 2, "system", 3,
|
||||
"fixed_system", 4, "ms_serif", 5, "ms_sans_serif", 6, "small_fonts", 7,
|
||||
"courier_new", 8, "script", 9, "ms_mincho", 10, "ms_gothic", 11,
|
||||
"xi_ming_ti", 12, "biao_kai_ti", 13, "ming_lui_fixed", 15,
|
||||
"ming_lui_variable", 16, "ms_hei", 17, "ms_song", 18, "fixedsys", 4)}
|
||||
|
||||
enumFontStyle = &enum{width: 1, flags: true, vals: nv(
|
||||
"normal", 0, "bold", 1, "italic", 2, "underline", 4, "strikeout", 8)}
|
||||
|
||||
enumFieldScript = &enum{width: 1, vals: nv(
|
||||
"latin", 0, "japanese", 1, "chinesetr", 2, "chineses", 0x19,
|
||||
"ascii", 0x7F, "any", 0x80, "default", 0xFF, "latin1", 0)}
|
||||
|
||||
enumScreenName = &enum{width: 1, vals: nv("append_with_for", 2, "prepend_with_s", 0x10)}
|
||||
|
||||
// mat_title_pos: where (bits 7-6) or'd with how it's justified (bits 1-0)
|
||||
enumTitlePos = &enum{width: 1, flags: true, vals: nv(
|
||||
"left", 0, "above", 0x40, "right", 0x80, "below", 0xC0,
|
||||
"center", 0, "top_or_left", 1, "bottom_or_right", 2)}
|
||||
|
||||
enumTextOnPicture = &enum{width: 1, flags: true, desc: true, vals: nv(
|
||||
"art_middle_center", 0, "title_middle_center", 0,
|
||||
"title_upper_center", 2, "title_middle_left", 4, "title_middle_right", 5,
|
||||
"title_lower_center", 7, "art_middle_left", 0x40, "art_middle_right", 0x50)}
|
||||
|
||||
enumFmItem = &enum{width: 1, vals: nv(
|
||||
"file_type_id", 1, "file_group_id", 2, "file_type_ext", 3,
|
||||
"file_type_desc", 4, "file_type_flags", 5, "filename", 6, "path", 7,
|
||||
"filespec", 8, "handle", 9, "error_code", 10, "custom_data", 11,
|
||||
"text_width", 12, "text_indent", 13, "text_sub_indent", 14,
|
||||
"text_flags", 15, "dialog_flags", 16, "and_mask", 17, "xor_mask", 18,
|
||||
"file_size", 19, "free_disk_space", 20, "broadcast_return_value", 21,
|
||||
"file_type_list_size", 22, "print_from_page", 23, "print_to_page", 24,
|
||||
"print_min_page", 25, "print_max_page", 26, "print_copies", 27,
|
||||
"hdc", 28, "print_job_name", 29, "date", 30, "time", 31,
|
||||
"text_mode", 32, "ini_string_length", 33, "ini_file", 34,
|
||||
"ini_group", 35, "ini_key", 36, "ini_data_type", 37, "thumbnail", 38,
|
||||
"persistent_path", 40, "ini_section_size", 41)}
|
||||
|
||||
enumErrorFlags = &enum{width: 1, flags: true, vals: nv(
|
||||
"display_msg", 1, "terminate", 2, "broadcast", 4)}
|
||||
|
||||
enumValidate = &enum{width: 1, flags: true, vals: nv("display_msg", 1, "terminate", 2)}
|
||||
|
||||
enumDataType = &enum{width: 1, vals: nv(
|
||||
"default", 0, "text", 1, "var", 2, "boolean", 3, "global_id", 4,
|
||||
"relative_id", 5, "index", 6, "child_count", 7, "objptr", 8,
|
||||
"value", 9, "raw", 10, "length", 11, "selected", 12, "lengh", 11)}
|
||||
|
||||
enumExtraction = &enum{width: 1, vals: nv(
|
||||
"default", 0, "current_object", 1, "selected_children", 2,
|
||||
"cur_obj_selected_children", 3, "all_children", 4,
|
||||
"cur_obj_all_children", 5)}
|
||||
|
||||
enumBufFlags = &enum{width: 4, flags: true, vals: nv(
|
||||
"token_header", 0x1, "stream_id_header", 0x2, "host_bound", 0x4,
|
||||
"start_stream_header", 0x8, "end_stream_trailer", 0x10,
|
||||
"data_included", 0x20, "leave_buffer_open", 0x40,
|
||||
"response_id_header", 0x80, "pointer_included", 0x100,
|
||||
"clear_buffer", 0x200)}
|
||||
|
||||
enumHfsFlags = &enum{width: 4, flags: true, vals: nv(
|
||||
"insert_global_id", 0x2, "update_display", 0x40)}
|
||||
|
||||
enumHfsDatabase = &enum{width: 4, vals: nv("client", 0, "host", 1)}
|
||||
|
||||
enumDisplay = &enum{width: 1, vals: nv("width", 0, "height", 1, "horzres", 2, "vertres", 3)}
|
||||
|
||||
enumTypedData = &enum{width: 2, vals: nv("ascii", 0, "latin1", 0x0104)}
|
||||
|
||||
enumAutoComplete = &enum{width: 1, vals: nv(
|
||||
"web_list", 0, "address_list", 1, "other_list", 2, "std_sort_search", 1)}
|
||||
)
|
||||
|
||||
// atomEnums gives, per atom, the named values of each place in its
|
||||
// argument (nil where it has none); the last applies to the places after.
|
||||
var atomEnums = map[string][]*enum{
|
||||
"man_start_object": {enumObject},
|
||||
"man_start_sibling": {enumObject},
|
||||
"man_start_first": {enumObject},
|
||||
"man_start_alpha": {enumObject},
|
||||
"man_start_last": {enumObject},
|
||||
"mat_object_type": {enumObject},
|
||||
"act_set_criterion": {enumCriterion},
|
||||
"act_do_action": {enumCriterion},
|
||||
"async_alert": {enumAlert},
|
||||
"mat_position": {enumPosition},
|
||||
"mat_log_object": {enumLogObject},
|
||||
"mat_sort_order": {enumSortOrder},
|
||||
"mat_frame_style": {enumFrameStyle},
|
||||
"mat_trigger_style": {enumTriggerStyle},
|
||||
"mat_font_id": {enumFont},
|
||||
"mat_font_style": {enumFontStyle},
|
||||
"mat_font_sis": {enumFont, nil, enumFontStyle},
|
||||
"mat_intl_font_sis": {enumFont, nil, enumFontStyle},
|
||||
"mat_field_script": {enumFieldScript},
|
||||
"mat_title_pos": {enumTitlePos},
|
||||
"mat_text_on_picture_pos": {enumTextOnPicture},
|
||||
"mat_title_append_screen_name": {enumScreenName},
|
||||
"mat_auto_complete": {enumAutoComplete},
|
||||
"fm_item_type": {enumFmItem},
|
||||
"fm_item_get": {enumFmItem},
|
||||
"fm_handle_error": {enumErrorFlags},
|
||||
"de_validate": {enumValidate},
|
||||
"de_set_data_type": {enumDataType},
|
||||
"de_set_extraction_type": {enumExtraction},
|
||||
"de_get_data": {enumExtraction},
|
||||
"de_get_data_value": {enumExtraction},
|
||||
"de_get_data_pointer": {enumExtraction},
|
||||
"de_start_extraction": {enumBufFlags},
|
||||
"buf_start_buffer": {enumBufFlags},
|
||||
"buf_use_buffer": {enumBufFlags},
|
||||
"buf_set_flags": {enumBufFlags},
|
||||
"buf_get_flags": {enumBufFlags},
|
||||
"hfs_attr_flags": {enumHfsFlags},
|
||||
"hfs_attr_database_type": {enumHfsDatabase},
|
||||
"man_get_display_characteristics": {enumDisplay},
|
||||
"uni_start_typed_data": {enumTypedData},
|
||||
"uni_next_atom_typed": {enumTypedData},
|
||||
}
|
||||
|
||||
func init() {
|
||||
for _, n := range []string{"chart_title_font_sis", "chart_right_font_sis",
|
||||
"chart_left_font_sis", "chart_bottom_font_sis", "chart_xlegend_font_sis",
|
||||
"chart_ylegend_font_sis", "chart_constant_font_sis", "chart_legend_font_sis"} {
|
||||
atomEnums[n] = atomEnums["mat_font_sis"]
|
||||
}
|
||||
}
|
||||
|
||||
// enumAt is the named values of the i'th place of an atom's argument.
|
||||
func enumAt(a *Atom, i int) *enum {
|
||||
es := atomEnums[a.Name]
|
||||
if len(es) == 0 {
|
||||
return nil
|
||||
}
|
||||
if i >= len(es) {
|
||||
i = len(es) - 1
|
||||
}
|
||||
return es[i]
|
||||
}
|
||||
|
||||
// enumValue is one of an atom's named values.
|
||||
func enumValue(a *Atom, i int, w string) ([]byte, bool) {
|
||||
if a.Type == TypeOrient {
|
||||
if v, ok := orientValue(w); ok {
|
||||
return []byte{v}, true
|
||||
}
|
||||
return nil, false
|
||||
}
|
||||
e := enumAt(a, i)
|
||||
if e == nil {
|
||||
return nil, false
|
||||
}
|
||||
v, ok := e.value(w)
|
||||
if !ok {
|
||||
return nil, false
|
||||
}
|
||||
return fixed(int64(v), e.width), true
|
||||
}
|
||||
|
||||
// numWidth is the fixed width of the i'th number in an atom's argument,
|
||||
// or 0 for "as few bytes as it needs".
|
||||
func numWidth(a *Atom, i int) int {
|
||||
switch a.Name {
|
||||
case "mat_size":
|
||||
if i == 2 {
|
||||
return 2 // the text field's length
|
||||
}
|
||||
case "hfs_attr_field_mapping", "hfs_attr_variable_mapping", "hfs_attr_dispatch_mapping":
|
||||
return 4
|
||||
case "hfs_attr_checkbox_mapping":
|
||||
if i == 0 {
|
||||
return 4
|
||||
}
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// pipeWidth is the width of an or'd value for an atom, or 0 for the
|
||||
// widest of its parts.
|
||||
func pipeWidth(a *Atom) int {
|
||||
if e := enumAt(a, 0); e != nil && e.flags {
|
||||
return e.width
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// orientation: h or v, how the objects are justified across (c l r f e),
|
||||
// and along (c t b f e).
|
||||
const (
|
||||
orientAcross = "clrfe"
|
||||
orientAlong = "ctbfe"
|
||||
)
|
||||
|
||||
func orientValue(w string) (byte, bool) {
|
||||
if len(w) != 3 || (w[0] != 'h' && w[0] != 'v') {
|
||||
return 0, false
|
||||
}
|
||||
x := strings.IndexByte(orientAcross, w[1])
|
||||
if x < 0 && (w[1] == 't' || w[1] == 'b') {
|
||||
x = strings.IndexByte(orientAlong, w[1]) // the manual's t/b for l/r
|
||||
}
|
||||
y := strings.IndexByte(orientAlong, w[2])
|
||||
if y < 0 && (w[2] == 'l' || w[2] == 'r') {
|
||||
y = strings.IndexByte(orientAcross, w[2])
|
||||
}
|
||||
if x < 0 || y < 0 {
|
||||
return 0, false
|
||||
}
|
||||
v := byte(x<<3 | y)
|
||||
if w[0] == 'v' {
|
||||
v |= 0x40
|
||||
}
|
||||
return v, true
|
||||
}
|
||||
|
||||
func orientName(v byte) (string, bool) {
|
||||
x, y := int(v>>3&7), int(v&7)
|
||||
if v&^0x7F != 0 || x >= len(orientAcross) || y >= len(orientAlong) {
|
||||
return "", false
|
||||
}
|
||||
d := "h"
|
||||
if v&0x40 != 0 {
|
||||
d = "v"
|
||||
}
|
||||
return fmt.Sprintf("%s%c%c", d, orientAcross[x], orientAlong[y]), true
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
// Package fdo is FDO91, the forms language of the classic AOL client (2.5
|
||||
// to 4.0 and on): the atom streams the host sends to draw windows and run
|
||||
// actions, and the client sends back with what a form holds.
|
||||
//
|
||||
// An atom stream is a run of atoms, each a protocol (man, mat, act...), an
|
||||
// atom number and an argument of up to 32K bytes. Ada32.dll, AOL's own
|
||||
// compiler, writes every atom in the "full" style; the client also reads
|
||||
// seven compact ones, and atoms too big for one packet as a large atom in
|
||||
// pieces. This package reads all of them (Decode, Decoder), writes them as
|
||||
// Ada32 does (Encode, Packets), compiles FDO91 source to atom streams
|
||||
// byte for byte as Ada32 does (Compile), and turns streams back into
|
||||
// source that compiles to the same bytes (Decompile).
|
||||
//
|
||||
// The atom table is ADA.BIN's, the compiler's own list, as AtomForge
|
||||
// dumped it, and the compiler is checked against AtomForge's corpus of what
|
||||
// Ada32 made of 1,889 forms and 74,369 single atoms, and of 44 streams
|
||||
// captured from a live client (see the tests).
|
||||
//
|
||||
// Strings are bytes: the client is a Windows program of the 1990s and
|
||||
// reads Windows-1252. Latin1 and Quote turn Go strings into those bytes
|
||||
// and into source text.
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
// Latin1 is s as the client's bytes: Windows-1252, with '?' for what it
|
||||
// can't show.
|
||||
func Latin1(s string) []byte {
|
||||
b := make([]byte, 0, len(s))
|
||||
for _, r := range s {
|
||||
switch {
|
||||
case r < 0x80 || r >= 0xA0 && r <= 0xFF:
|
||||
b = append(b, byte(r))
|
||||
default:
|
||||
if c, ok := cp1252[r]; ok {
|
||||
b = append(b, c)
|
||||
} else {
|
||||
b = append(b, '?')
|
||||
}
|
||||
}
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// FromLatin1 is the client's Windows-1252 bytes as a Go string.
|
||||
func FromLatin1(b []byte) string {
|
||||
var sb strings.Builder
|
||||
for _, c := range b {
|
||||
switch {
|
||||
case c < 0x80 || c >= 0xA0:
|
||||
sb.WriteRune(rune(c))
|
||||
default:
|
||||
if r := cp1252Runes[c-0x80]; r != 0 {
|
||||
sb.WriteRune(r)
|
||||
} else {
|
||||
sb.WriteRune(utf8.RuneError)
|
||||
}
|
||||
}
|
||||
}
|
||||
return sb.String()
|
||||
}
|
||||
|
||||
// cp1252Runes are Windows-1252's characters at 0x80-0x9F.
|
||||
var cp1252Runes = [32]rune{
|
||||
'€', 0, '‚', 'ƒ', '„', '…', '†', '‡', 'ˆ', '‰', 'Š', '‹', 'Œ', 0, 'Ž', 0,
|
||||
0, '‘', '’', '“', '”', '•', '–', '—', '˜', '™', 'š', '›', 'œ', 0, 'ž', 'Ÿ',
|
||||
}
|
||||
|
||||
var cp1252 = func() map[rune]byte {
|
||||
m := map[rune]byte{}
|
||||
for i, r := range cp1252Runes {
|
||||
if r != 0 {
|
||||
m[r] = byte(0x80 + i)
|
||||
}
|
||||
}
|
||||
return m
|
||||
}()
|
||||
|
||||
// Quote is s as an FDO91 string, "..." with escapes, its text in the
|
||||
// client's Windows-1252: for putting text that isn't known in advance (a
|
||||
// screen name, a message) into source.
|
||||
func Quote(s string) string { return quote(Latin1(s)) }
|
||||
|
||||
// QuoteBytes is b, the client's bytes, as an FDO91 string.
|
||||
func QuoteBytes(b []byte) string { return quote(b) }
|
||||
|
||||
// Find is the first frame of the named atom, at the top level of frames.
|
||||
func Find(frames []Frame, name string) (Frame, bool) {
|
||||
a, ok := Lookup(name)
|
||||
if !ok {
|
||||
return Frame{}, false
|
||||
}
|
||||
for _, f := range frames {
|
||||
if f.Proto == a.Proto && f.Num == a.Num {
|
||||
return f, true
|
||||
}
|
||||
}
|
||||
return Frame{}, false
|
||||
}
|
||||
|
||||
// FindAll is every frame of the named atom, at the top level of frames:
|
||||
// FindAll(frames, "de_data") is the fields a form sent, in order.
|
||||
func FindAll(frames []Frame, name string) []Frame {
|
||||
a, ok := Lookup(name)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
var out []Frame
|
||||
for _, f := range frames {
|
||||
if f.Proto == a.Proto && f.Num == a.Num {
|
||||
out = append(out, f)
|
||||
}
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// F makes a frame from an atom's name and its argument bytes; it panics on
|
||||
// a name not in the table, so it is for names known when the program is
|
||||
// written.
|
||||
func F(name string, data ...byte) Frame {
|
||||
a := MustLookup(name)
|
||||
if data == nil {
|
||||
data = []byte{}
|
||||
}
|
||||
return Frame{a.Proto, a.Num, data}
|
||||
}
|
||||
|
||||
// Number is n as an atom's argument: big-endian in as few bytes as it
|
||||
// needs, as the compiler writes numbers.
|
||||
func Number(n int64) []byte { return number(n) }
|
||||
|
||||
// GID is a global id as an atom's argument: 32-105 is GID(32, 105) and
|
||||
// 1-0-1329 GID(1, 0, 1329).
|
||||
func GID(parts ...int64) []byte {
|
||||
if len(parts) != 2 && len(parts) != 3 {
|
||||
panic(fmt.Sprintf("fdo: a global id has 2 or 3 parts, not %d", len(parts)))
|
||||
}
|
||||
return number(gidNumber(parts))
|
||||
}
|
||||
@@ -0,0 +1,377 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"math/rand"
|
||||
"strings"
|
||||
"testing"
|
||||
)
|
||||
|
||||
// The sign-on form as an AOL 3.0 client sends it (token Dd, stream 0x15),
|
||||
// from "The AOL Protocol" captures: screen name and password as de_data,
|
||||
// numbers in four bytes where Ada32 would write one.
|
||||
var signOn = []byte{
|
||||
0x00, 0x01, 0x00,
|
||||
0x01, 0x0A, 0x04, 0, 0, 0, 1,
|
||||
0x01, 0x0B, 0x04, 0, 0, 0, 1,
|
||||
0x03, 0x01, 0x0A, 'h', 'o', 'l', 'y', 't', 'a', 'b', 'l', 'e', ' ',
|
||||
0x01, 0x1D, 0x00, 0x01, 0x1D, 0x00,
|
||||
0x01, 0x0A, 0x04, 0, 0, 0, 2,
|
||||
0x03, 0x01, 0x08, '*', '*', '*', '*', '*', '*', '*', '*',
|
||||
0x01, 0x1D, 0x00,
|
||||
0x00, 0x02, 0x00,
|
||||
}
|
||||
|
||||
func TestSignOn(t *testing.T) {
|
||||
frames, err := Decode(signOn)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
var names []string
|
||||
for _, f := range frames {
|
||||
names = append(names, f.Name())
|
||||
}
|
||||
want := "uni_start_stream man_set_context_relative man_set_context_index de_data " +
|
||||
"man_end_context man_end_context man_set_context_relative de_data man_end_context uni_end_stream"
|
||||
if got := strings.Join(names, " "); got != want {
|
||||
t.Errorf("atoms\n got %s\nwant %s", got, want)
|
||||
}
|
||||
de := FindAll(frames, "de_data")
|
||||
if len(de) != 2 || string(de[0].Data) != "holytable " || string(de[1].Data) != "********" {
|
||||
t.Errorf("de_data: %v", de)
|
||||
}
|
||||
if !bytes.Equal(Encode(frames), signOn) {
|
||||
t.Error("Encode doesn't give the packet back")
|
||||
}
|
||||
src, err := Decompile(signOn)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if !strings.Contains(src, "man_set_context_relative <00x, 00x, 00x, 01x>") ||
|
||||
!strings.Contains(src, `de_data <"holytable ">`) {
|
||||
t.Errorf("decompiled:\n%s", src)
|
||||
}
|
||||
if b, err := Compile(src); err != nil || !bytes.Equal(b, signOn) {
|
||||
t.Errorf("recompiled: % x, %v", b, err)
|
||||
}
|
||||
}
|
||||
|
||||
// The sign-off confirmation from the FDO91 manual's introduction.
|
||||
const signOff = `
|
||||
atom$uni_start_stream
|
||||
atom$man_start_object <ind_group, "Exit Gateway">
|
||||
atom$mat_orientation <vff>
|
||||
atom$mat_position <5>
|
||||
atom$man_start_object <ornament, "Are you sure you want to sign off?">
|
||||
atom$man_start_sibling <org_group>
|
||||
atom$mat_orientation <hef>
|
||||
atom$man_start_object <trigger, "Yes">
|
||||
atom$mat_bool_default <yes>
|
||||
atom$man_start_sibling <trigger, "No">
|
||||
atom$man_end_object
|
||||
atom$man_update_display
|
||||
atom$uni_wait_off
|
||||
atom$uni_end_stream
|
||||
`
|
||||
|
||||
func TestManualExample(t *testing.T) {
|
||||
b, err := Compile(signOff)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
want := []byte{0x00, 0x01, 0x00, 0x01, 0x00, 0x0D, 0x01}
|
||||
want = append(want, "Exit Gateway"...)
|
||||
want = append(want, 0x10, 0x08, 0x01, 0x5B, 0x10, 0x40, 0x01, 0x05)
|
||||
if !bytes.HasPrefix(b, want) {
|
||||
t.Errorf("got % x\nwant prefix % x", b, want)
|
||||
}
|
||||
src, err := Decompile(b)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
for _, s := range []string{`man_start_object <ind_group, "Exit Gateway">`, "mat_orientation <vff>",
|
||||
"mat_position <center_center>", `man_start_sibling <org_group, "">`, "mat_bool_default <yes>"} {
|
||||
if !strings.Contains(src, s) {
|
||||
t.Errorf("decompiled source lacks %s:\n%s", s, src)
|
||||
}
|
||||
}
|
||||
if b2, err := Compile(src); err != nil || !bytes.Equal(b, b2) {
|
||||
t.Errorf("round trip: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestNestedStream(t *testing.T) {
|
||||
src := `uni_start_stream
|
||||
man_start_object <trigger, "Go">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
sm_send_token_raw <"pE">
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
uni_end_stream
|
||||
`
|
||||
b, err := Compile(src)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
inner := []byte{0x00, 0x01, 0x00, 0x0E, 0x10, 0x02, 'p', 'E', 0x00, 0x02, 0x00}
|
||||
if !bytes.Contains(b, append([]byte{0x02, 0x04, byte(len(inner))}, inner...)) {
|
||||
t.Errorf("nested stream not found in % x", b)
|
||||
}
|
||||
got, err := Decompile(b)
|
||||
if err != nil || got != src {
|
||||
t.Errorf("decompiled:\n%s\nwant:\n%s (%v)", got, src, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestValues(t *testing.T) {
|
||||
for _, c := range []struct {
|
||||
src string
|
||||
want []byte
|
||||
}{
|
||||
{"mat_object_id <32-105>", []byte{0x10, 0x0C, 3, 0x20, 0x00, 0x69}},
|
||||
{"mat_art_id <1-0-1329>", []byte{0x10, 0x0E, 4, 1, 0, 0x05, 0x31}},
|
||||
{"uni_sync_skip <0>", []byte{0x00, 0x07, 1, 0}},
|
||||
{"uni_sync_skip <300>", []byte{0x00, 0x07, 2, 0x01, 0x2C}},
|
||||
{"uni_sync_skip <4000000000>", []byte{0x00, 0x07, 4, 0x7F, 0xFF, 0xFF, 0xFF}},
|
||||
{"mat_size <25, 1, 32>", []byte{0x10, 0x17, 4, 25, 1, 0, 32}},
|
||||
{"mat_title_pos <above | center>", []byte{0x10, 0x11, 1, 0x40}},
|
||||
{"mat_font_sis <arial, 10, bold | italic>", []byte{0x10, 0x0A, 3, 0, 10, 3}},
|
||||
{"var_string_set <A,\"x\\r\\n\\x80\">", []byte{0x0C, 0x05, 5, 0, 'x', '\r', '\n', 0x80}},
|
||||
{"buf_set_data_atom <de_data>", []byte{0x04, 0x12, 2, 0x03, 0x01}},
|
||||
{"async_alert <info, \"Done.\">", []byte{0x0D, 0x07, 6, 1, 'D', 'o', 'n', 'e', '.'}},
|
||||
{"buf_start_buffer <token_header | host_bound>", []byte{0x04, 0x00, 4, 0, 0, 0, 5}},
|
||||
{"the_unknown <99, 7, 01x, 02x>", []byte{0xE0 | 0x60>>2, 0x03, 7, 2, 1, 2}},
|
||||
{"www_load_url <\"x\">", nil},
|
||||
} {
|
||||
got, err := Compile(c.src)
|
||||
if err != nil {
|
||||
t.Errorf("%s: %v", c.src, err)
|
||||
continue
|
||||
}
|
||||
if c.want != nil && !bytes.Equal(got, c.want) {
|
||||
t.Errorf("%s: got % x, want % x", c.src, got, c.want)
|
||||
}
|
||||
back, err := Decompile(got)
|
||||
if err != nil {
|
||||
t.Errorf("%s: %v", c.src, err)
|
||||
continue
|
||||
}
|
||||
if again, err := Compile(back); err != nil || !bytes.Equal(again, got) {
|
||||
t.Errorf("%s: decompiled as %q, which compiles to % x (%v)", c.src, back, again, err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestErrors(t *testing.T) {
|
||||
for _, c := range []struct{ src, msg string }{
|
||||
{"uni_start_stream\nnot_an_atom <1>", "line 2: not_an_atom: unrecognized atom"},
|
||||
{`man_append_data <"no end>`, "line 1: string not closed"},
|
||||
{"act_replace_action\n<\nuni_start_stream\n", "nested stream not closed"},
|
||||
{"mat_position <sideways>", `unknown word "sideways"`},
|
||||
{"uni_start_stream <1, >", "expected a value"},
|
||||
{"the_unknown <1>", "needs <protocol, atom, data...>"},
|
||||
} {
|
||||
_, err := Compile(c.src)
|
||||
if err == nil || !strings.Contains(err.Error(), c.msg) {
|
||||
t.Errorf("%q: got %v, want %q", c.src, err, c.msg)
|
||||
}
|
||||
}
|
||||
var ce *CompileError
|
||||
if _, err := Compile("uni_start_stream\n\nbogus"); !errors.As(err, &ce) || ce.Line != 3 {
|
||||
t.Errorf("CompileError line: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
// TestStyles decodes each of the eight styles.
|
||||
func TestStyles(t *testing.T) {
|
||||
b := []byte{
|
||||
0x10, 0x08, 0x01, 0x5B, // full: mat_orientation <vff>
|
||||
0x30 | 0x00, 0x08, // atom: mat 8, no data (protocol carried over)
|
||||
0x80 | 0x0C, 0x02, 0xAA, 0xBB, // current: mat 12, two bytes
|
||||
0xA0 | 0x07, // zero: mat 7 <0>
|
||||
0xC0 | 0x07, // one: mat 7 <1>
|
||||
0x40 | 0x0D, 0x60 | 0x07, // data: async 7, value 3
|
||||
0x20 | 0x0D, 0x40 | 0x07, 'h', 'i', // length: async 7, two bytes
|
||||
0xE0 | 0x08, 0x10, 0x05, 0x01, 'x', // prefix: www (48) atom 5, full
|
||||
0xE0 | 0x08 | 0x02, 0xA0 | 0x10, 0x01, // prefix, zero: proto 48, atom 0x41
|
||||
}
|
||||
frames, err := Decode(b)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
want := []Frame{
|
||||
{16, 8, []byte{0x5B}}, {16, 8, []byte{}}, {16, 12, []byte{0xAA, 0xBB}},
|
||||
{16, 7, []byte{0}}, {16, 7, []byte{1}}, {13, 7, []byte{3}},
|
||||
{13, 7, []byte("hi")}, {48, 5, []byte("x")}, {48, 0x41, []byte{0}},
|
||||
}
|
||||
if len(frames) != len(want) {
|
||||
t.Fatalf("got %d frames: %v", len(frames), frames)
|
||||
}
|
||||
for i := range want {
|
||||
if frames[i].Proto != want[i].Proto || frames[i].Num != want[i].Num || !bytes.Equal(frames[i].Data, want[i].Data) {
|
||||
t.Errorf("frame %d: got %v, want %v", i, frames[i], want[i])
|
||||
}
|
||||
}
|
||||
if _, err := Decode([]byte{0x10, 0x08, 0x05, 1}); !errors.Is(err, ErrShort) {
|
||||
t.Errorf("short atom: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func randomFrames(r *rand.Rand, n int) []Frame {
|
||||
var out []Frame
|
||||
for i := 0; i < n; i++ {
|
||||
f := Frame{Proto: uint8(r.Intn(128)), Num: uint8(r.Intn(256))}
|
||||
if r.Intn(3) == 0 {
|
||||
f.Proto = uint8(r.Intn(3)) // runs of one protocol, for the compact styles
|
||||
}
|
||||
if f.Proto == ProtoUNI && f.Num >= atomStartLarge && f.Num <= atomEndLarge {
|
||||
f.Num = 1 // not the large-atom atoms
|
||||
}
|
||||
switch r.Intn(5) {
|
||||
case 0:
|
||||
f.Data = []byte{}
|
||||
case 1:
|
||||
f.Data = []byte{byte(r.Intn(9))}
|
||||
case 2:
|
||||
f.Data = make([]byte, 1+r.Intn(200))
|
||||
default:
|
||||
f.Data = make([]byte, r.Intn(8))
|
||||
}
|
||||
r.Read(f.Data)
|
||||
out = append(out, f)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
func sameFrames(a, b []Frame) bool {
|
||||
if len(a) != len(b) {
|
||||
return false
|
||||
}
|
||||
for i := range a {
|
||||
if a[i].Proto != b[i].Proto || a[i].Num != b[i].Num || !bytes.Equal(a[i].Data, b[i].Data) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func TestEncodeDecode(t *testing.T) {
|
||||
r := rand.New(rand.NewSource(1))
|
||||
for i := 0; i < 200; i++ {
|
||||
frames := randomFrames(r, 30)
|
||||
for name, enc := range map[string]func([]Frame) []byte{"full": Encode, "compact": EncodeCompact} {
|
||||
got, err := Decode(enc(frames))
|
||||
if err != nil || !sameFrames(got, frames) {
|
||||
t.Fatalf("%s: %v", name, err)
|
||||
}
|
||||
}
|
||||
if c, f := len(EncodeCompact(frames)), len(Encode(frames)); c > f {
|
||||
t.Errorf("compact %d bytes, full %d", c, f)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestLargeAtoms(t *testing.T) {
|
||||
big := make([]byte, 1000)
|
||||
for i := range big {
|
||||
big[i] = byte(i)
|
||||
}
|
||||
frames := []Frame{F("uni_start_stream", 0), F("man_append_data", big...), F("man_update_display"), F("uni_end_stream", 0)}
|
||||
packets := Packets(frames, 115)
|
||||
var d Decoder
|
||||
var got []Frame
|
||||
for _, p := range packets {
|
||||
if len(p) > 115 {
|
||||
t.Errorf("packet of %d bytes", len(p))
|
||||
}
|
||||
f, err := d.Feed(p)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
got = append(got, f...)
|
||||
}
|
||||
if !sameFrames(got, frames) {
|
||||
t.Errorf("got %v", got)
|
||||
}
|
||||
// the start says which atom and how long
|
||||
if p := packets[1]; !bytes.Equal(p, []byte{0x00, 0x04, 0x04, 0x01, 0x14, 0x03, 0xE8}) {
|
||||
t.Errorf("start of the large atom: % x", p)
|
||||
}
|
||||
// and an atom over MaxData goes as one in Encode too
|
||||
huge := Frame{1, 4, make([]byte, MaxData+10)}
|
||||
if got, err := Decode(Encode([]Frame{huge})); err != nil || !sameFrames(got, []Frame{huge}) {
|
||||
t.Errorf("huge atom: %v", err)
|
||||
}
|
||||
if _, err := Decode([]byte{0x00, 0x05, 0x01, 'x'}); !errors.Is(err, ErrLargeAtom) {
|
||||
t.Errorf("segment without a start: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestOrientation(t *testing.T) {
|
||||
n := 0
|
||||
for _, d := range "hv" {
|
||||
for _, x := range orientAcross {
|
||||
for _, y := range orientAlong {
|
||||
w := string([]rune{d, x, y})
|
||||
v, ok := orientValue(w)
|
||||
if !ok {
|
||||
t.Fatalf("%s: no value", w)
|
||||
}
|
||||
if back, _ := orientName(v); back != w {
|
||||
t.Errorf("%s: %#x reads %s", w, v, back)
|
||||
}
|
||||
n++
|
||||
}
|
||||
}
|
||||
}
|
||||
if v, _ := orientValue("vff"); v != 0x5B {
|
||||
t.Errorf("vff is %#x", v)
|
||||
}
|
||||
if v, _ := orientValue("hec"); v != 0x20 {
|
||||
t.Errorf("hec is %#x", v)
|
||||
}
|
||||
}
|
||||
|
||||
func TestLatin1(t *testing.T) {
|
||||
s := "Café “quoted” – 50€ 日本"
|
||||
b := Latin1(s)
|
||||
want := []byte("Caf\xe9 \x93quoted\x94 \x96 50\x80 ??")
|
||||
if !bytes.Equal(b, want) {
|
||||
t.Errorf("Latin1: % x", b)
|
||||
}
|
||||
if got := FromLatin1(b); got != "Café “quoted” – 50€ ??" {
|
||||
t.Errorf("FromLatin1: %q", got)
|
||||
}
|
||||
src := "man_append_data <" + Quote(`say "hi" \ `+s) + ">"
|
||||
got, err := Compile(src)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if f, _ := Decode(got); !bytes.Equal(f[0].Data, append([]byte(`say "hi" \ `), want...)) {
|
||||
t.Errorf("quoted: % x", f[0].Data)
|
||||
}
|
||||
}
|
||||
|
||||
func TestTable(t *testing.T) {
|
||||
if n := len(Atoms()); n < 1600 {
|
||||
t.Errorf("%d atoms", n)
|
||||
}
|
||||
seen := map[uint16]string{}
|
||||
for _, a := range Atoms() {
|
||||
k := uint16(a.Proto)<<8 | uint16(a.Num)
|
||||
if s, dup := seen[k]; dup {
|
||||
t.Errorf("%s and %s are both %d:%d", s, a.Name, a.Proto, a.Num)
|
||||
}
|
||||
seen[k] = a.Name
|
||||
if p := ProtocolName(a.Proto); p == "" || !strings.HasPrefix(a.Name, p+"_") {
|
||||
t.Errorf("%s is protocol %d (%q)", a.Name, a.Proto, p)
|
||||
}
|
||||
}
|
||||
if a, ok := Lookup("ATOM$MAN_START_OBJECT"); !ok || a.Proto != ProtoMAN || a.Num != 0 {
|
||||
t.Errorf("Lookup: %v", a)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
// Command gen makes the fdo package's atom table (atomtable.go) from
|
||||
// AtomForge's dump of AOL's ADA.BIN, the atom list that ships with the
|
||||
// FDO91 compiler (Ada32.dll): every atom's protocol, number, name,
|
||||
// argument type and indent flags.
|
||||
//
|
||||
// git clone --depth 1 https://github.com/iconidentify/atomforge-fdo-java
|
||||
// go run ./internal/aol/fdo/gen -src atomforge-fdo-java
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"flag"
|
||||
"fmt"
|
||||
"go/format"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
"sort"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type atomJSON struct {
|
||||
Name string `json:"name"`
|
||||
Protocol int `json:"protocol"`
|
||||
Atom int `json:"atom"`
|
||||
Type string `json:"type"`
|
||||
Flags []string `json:"flags"`
|
||||
}
|
||||
|
||||
// typeNames are the fdo package's names for ADA.BIN's argument types,
|
||||
// keyed by AtomForge's names for them (some of which are guesses that
|
||||
// don't fit the atoms that have them: "STREAM_LEGACY" is the named-value
|
||||
// type of mat_position, "BOOL_LEGACY" a variable letter).
|
||||
var typeNames = map[string]string{
|
||||
"RAW": "TypeRaw", "DWORD": "TypeDword", "STRING": "TypeString",
|
||||
"BOOL": "TypeBool", "GID": "TypeGID", "STREAM": "TypeStream",
|
||||
"OBJSTART": "TypeObject", "ORIENT": "TypeOrient", "TOKEN": "TypeToken",
|
||||
"TOKENARG": "TypeCriterion", "ALERT": "TypeAlert", "ATOM": "TypeAtom",
|
||||
"COLORDATA": "TypeByteList", "IGNORE": "TypeIgnore",
|
||||
"VARLOOKUP": "TypeVarNumber", "CRITERION": "TypeVarString",
|
||||
"BOOL_LEGACY": "TypeVar", "CRITERION_LEGACY": "TypeList",
|
||||
"STREAM_LEGACY": "TypeEnum", "VAR": "TypeType14",
|
||||
"VARDWORD": "TypeType15",
|
||||
}
|
||||
|
||||
var flagNames = map[string]string{"INDENT": "FlagIndent", "OUTDENT": "FlagOutdent", "EOS": "FlagEOS"}
|
||||
|
||||
func main() {
|
||||
src := flag.String("src", "atomforge-fdo-java", "a checkout of atomforge-fdo-java")
|
||||
out := flag.String("out", "internal/aol/fdo/atomtable.go", "the file to write")
|
||||
flag.Parse()
|
||||
|
||||
raw, err := os.ReadFile(filepath.Join(*src, "src/test/resources/ada-bin-baseline.json"))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
var doc struct {
|
||||
Generated string `json:"generated"`
|
||||
Atoms []atomJSON `json:"atoms"`
|
||||
}
|
||||
if err := json.Unmarshal(raw, &doc); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
sort.Slice(doc.Atoms, func(i, j int) bool {
|
||||
a, b := doc.Atoms[i], doc.Atoms[j]
|
||||
if a.Protocol != b.Protocol {
|
||||
return a.Protocol < b.Protocol
|
||||
}
|
||||
return a.Atom < b.Atom
|
||||
})
|
||||
rev := "unknown"
|
||||
if b, err := exec.Command("git", "-C", *src, "rev-parse", "HEAD").Output(); err == nil {
|
||||
rev = strings.TrimSpace(string(b))
|
||||
}
|
||||
|
||||
var w bytes.Buffer
|
||||
fmt.Fprintf(&w, "// Code generated by go run ./internal/aol/fdo/gen; DO NOT EDIT.\n\n")
|
||||
fmt.Fprintf(&w, "// From AtomForge's dump of ADA.BIN (src/test/resources/ada-bin-baseline.json,\n")
|
||||
fmt.Fprintf(&w, "// generated %s), atomforge-fdo-java at %s\n", doc.Generated, rev)
|
||||
fmt.Fprintf(&w, "// (Copyright AtomForge Contributors, MIT License: LICENSE.atomforge).\n\n")
|
||||
fmt.Fprintf(&w, "package fdo\n\n")
|
||||
fmt.Fprintf(&w, "var atomTable = [...]Atom{\n")
|
||||
for _, a := range doc.Atoms {
|
||||
t, ok := typeNames[a.Type]
|
||||
if !ok {
|
||||
log.Fatalf("%s: unknown type %s", a.Name, a.Type)
|
||||
}
|
||||
var fl []string
|
||||
for _, f := range a.Flags {
|
||||
fl = append(fl, flagNames[f])
|
||||
}
|
||||
flags := "0"
|
||||
if len(fl) > 0 {
|
||||
flags = strings.Join(fl, "|")
|
||||
}
|
||||
fmt.Fprintf(&w, "\t{%d, %d, %q, %s, %s},\n", a.Protocol, a.Atom, strings.ToLower(a.Name), t, flags)
|
||||
}
|
||||
fmt.Fprintf(&w, "}\n")
|
||||
b, err := format.Source(w.Bytes())
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if err := os.WriteFile(*out, b, 0o644); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
log.Printf("%d atoms", len(doc.Atoms))
|
||||
}
|
||||
@@ -0,0 +1,451 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// The source language is the one AOL's tools and the FDO91 manual use, as
|
||||
// Ada32.dll compiles it and disassembles it:
|
||||
//
|
||||
// uni_start_stream <00x>
|
||||
// man_start_object <ind_group, "Exit Gateway">
|
||||
// mat_orientation <vff>
|
||||
// mat_object_id <32-105>
|
||||
// act_replace_select_action
|
||||
// <
|
||||
// uni_start_stream
|
||||
// sm_send_token_raw <"pE">
|
||||
// uni_end_stream
|
||||
// >
|
||||
// man_end_object
|
||||
// uni_end_stream
|
||||
//
|
||||
// One atom a line; its argument in angle brackets: numbers (123), hex bytes
|
||||
// (0dx), global ids (32-105, 1-0-1329), "strings" (with \r \n \t \\ \"
|
||||
// \xNN), words (yes, vff, select, A, an atom's name), words or numbers or'd
|
||||
// together (left | center), or several of these separated by commas. An
|
||||
// argument of a < alone on its line, then atoms, then a > alone on its line,
|
||||
// is a nested stream. A ; starts a comment. Indentation doesn't matter.
|
||||
// "atom$" before a name, as the manual writes them, is allowed.
|
||||
// the_unknown <proto, atom, bytes...> is an atom by number.
|
||||
|
||||
// Kind is the kind of an argument value.
|
||||
type Kind uint8
|
||||
|
||||
const (
|
||||
KindNum Kind = iota + 1 // Num
|
||||
KindHex // Bytes, written 0dx or 0d0ax
|
||||
KindString // Bytes
|
||||
KindWord // Text
|
||||
KindGID // GID
|
||||
KindPipe // Parts, or'd together
|
||||
KindStream // Stream
|
||||
)
|
||||
|
||||
// Value is one argument value.
|
||||
type Value struct {
|
||||
Kind Kind
|
||||
Num int64
|
||||
Bytes []byte
|
||||
Text string
|
||||
GID []int64
|
||||
Parts []Value
|
||||
Stream []*Node
|
||||
|
||||
streamFrames []Frame // a decompiled nested stream
|
||||
}
|
||||
|
||||
// Node is one atom of source: its name and its arguments.
|
||||
type Node struct {
|
||||
Name string
|
||||
Args []Value
|
||||
Line int
|
||||
}
|
||||
|
||||
// ParseError is a line the parser couldn't read.
|
||||
type ParseError struct {
|
||||
Line int
|
||||
Msg string
|
||||
}
|
||||
|
||||
func (e *ParseError) Error() string { return fmt.Sprintf("fdo: line %d: %s", e.Line, e.Msg) }
|
||||
|
||||
type tokKind uint8
|
||||
|
||||
const (
|
||||
tEOF tokKind = iota
|
||||
tNL
|
||||
tLT
|
||||
tGT
|
||||
tComma
|
||||
tPipe
|
||||
tWord
|
||||
tNum
|
||||
tHex
|
||||
tGID
|
||||
tString
|
||||
)
|
||||
|
||||
type token struct {
|
||||
kind tokKind
|
||||
text string
|
||||
line int
|
||||
}
|
||||
|
||||
type lexer struct {
|
||||
src string
|
||||
pos int
|
||||
line int
|
||||
}
|
||||
|
||||
func isDigit(c byte) bool { return c >= '0' && c <= '9' }
|
||||
func isHex(c byte) bool {
|
||||
return isDigit(c) || c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F'
|
||||
}
|
||||
func isWord(c byte) bool {
|
||||
return c == '_' || c == '$' || isDigit(c) || c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z'
|
||||
}
|
||||
|
||||
func (l *lexer) next() (token, error) {
|
||||
for l.pos < len(l.src) {
|
||||
c := l.src[l.pos]
|
||||
if c == ' ' || c == '\t' || c == '\f' || c == '\v' {
|
||||
l.pos++
|
||||
continue
|
||||
}
|
||||
if c == ';' {
|
||||
for l.pos < len(l.src) && l.src[l.pos] != '\n' && l.src[l.pos] != '\r' {
|
||||
l.pos++
|
||||
}
|
||||
continue
|
||||
}
|
||||
break
|
||||
}
|
||||
if l.pos >= len(l.src) {
|
||||
return token{tEOF, "", l.line}, nil
|
||||
}
|
||||
start, line := l.pos, l.line
|
||||
c := l.src[l.pos]
|
||||
l.pos++
|
||||
switch c {
|
||||
case '\r':
|
||||
if l.pos < len(l.src) && l.src[l.pos] == '\n' {
|
||||
l.pos++
|
||||
}
|
||||
l.line++
|
||||
return token{tNL, "", line}, nil
|
||||
case '\n':
|
||||
l.line++
|
||||
return token{tNL, "", line}, nil
|
||||
case '<':
|
||||
return token{tLT, "<", line}, nil
|
||||
case '>':
|
||||
return token{tGT, ">", line}, nil
|
||||
case ',':
|
||||
return token{tComma, ",", line}, nil
|
||||
case '|':
|
||||
return token{tPipe, "|", line}, nil
|
||||
case '"':
|
||||
var sb strings.Builder
|
||||
for {
|
||||
if l.pos >= len(l.src) || l.src[l.pos] == '\n' || l.src[l.pos] == '\r' {
|
||||
return token{}, &ParseError{line, "string not closed"}
|
||||
}
|
||||
c := l.src[l.pos]
|
||||
l.pos++
|
||||
if c == '"' {
|
||||
break
|
||||
}
|
||||
sb.WriteByte(c)
|
||||
if c == '\\' && l.pos < len(l.src) && l.src[l.pos] != '\n' && l.src[l.pos] != '\r' {
|
||||
sb.WriteByte(l.src[l.pos])
|
||||
l.pos++
|
||||
}
|
||||
}
|
||||
return token{tString, sb.String(), line}, nil
|
||||
}
|
||||
if !isWord(c) && c != '-' {
|
||||
return token{}, &ParseError{line, fmt.Sprintf("unexpected %q", c)}
|
||||
}
|
||||
for l.pos < len(l.src) && (isWord(l.src[l.pos]) || l.src[l.pos] == '-') {
|
||||
l.pos++
|
||||
}
|
||||
text := l.src[start:l.pos]
|
||||
return token{classify(text), text, line}, nil
|
||||
}
|
||||
|
||||
// classify sorts a run of word characters into a number, hex bytes, a
|
||||
// global id or a word.
|
||||
func classify(s string) tokKind {
|
||||
if n := len(s); n > 1 && (s[n-1] == 'x' || s[n-1] == 'X') && allHex(s[:n-1]) {
|
||||
return tHex
|
||||
}
|
||||
digits := strings.TrimPrefix(s, "-")
|
||||
if digits != "" && allDigits(digits) {
|
||||
return tNum
|
||||
}
|
||||
if parts := strings.Split(s, "-"); len(parts) == 2 || len(parts) == 3 {
|
||||
ok := true
|
||||
for _, p := range parts {
|
||||
ok = ok && p != "" && allDigits(p)
|
||||
}
|
||||
if ok {
|
||||
return tGID
|
||||
}
|
||||
}
|
||||
return tWord
|
||||
}
|
||||
|
||||
func allHex(s string) bool {
|
||||
for i := 0; i < len(s); i++ {
|
||||
if !isHex(s[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return s != ""
|
||||
}
|
||||
|
||||
func allDigits(s string) bool {
|
||||
for i := 0; i < len(s); i++ {
|
||||
if !isDigit(s[i]) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return s != ""
|
||||
}
|
||||
|
||||
type parser struct {
|
||||
lx lexer
|
||||
tok token
|
||||
peek *token
|
||||
}
|
||||
|
||||
func (p *parser) advance() error {
|
||||
if p.peek != nil {
|
||||
p.tok, p.peek = *p.peek, nil
|
||||
return nil
|
||||
}
|
||||
t, err := p.lx.next()
|
||||
p.tok = t
|
||||
return err
|
||||
}
|
||||
|
||||
func (p *parser) lookahead() (token, error) {
|
||||
if p.peek == nil {
|
||||
t, err := p.lx.next()
|
||||
if err != nil {
|
||||
return t, err
|
||||
}
|
||||
p.peek = &t
|
||||
}
|
||||
return *p.peek, nil
|
||||
}
|
||||
|
||||
// Parse reads FDO91 source into its atoms. It checks the syntax only:
|
||||
// Compile checks the names and arguments.
|
||||
func Parse(src string) ([]*Node, error) {
|
||||
p := &parser{lx: lexer{src: src, line: 1}}
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
nodes, err := p.atoms(false)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return nodes, nil
|
||||
}
|
||||
|
||||
// atoms reads atoms to the end, or to a > alone on its line if nested.
|
||||
func (p *parser) atoms(nested bool) ([]*Node, error) {
|
||||
var out []*Node
|
||||
for {
|
||||
switch p.tok.kind {
|
||||
case tNL:
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
continue
|
||||
case tEOF:
|
||||
if nested {
|
||||
return nil, &ParseError{p.tok.line, "nested stream not closed with >"}
|
||||
}
|
||||
return out, nil
|
||||
case tGT:
|
||||
if !nested {
|
||||
return nil, &ParseError{p.tok.line, "> without a nested stream"}
|
||||
}
|
||||
return out, p.advance()
|
||||
case tWord:
|
||||
default:
|
||||
return nil, &ParseError{p.tok.line, fmt.Sprintf("expected an atom name, found %q", p.tok.text)}
|
||||
}
|
||||
n := &Node{Name: strings.TrimPrefix(strings.ToLower(p.tok.text), "atom$"), Line: p.tok.line}
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// the argument may be on the next line, as a nested stream's < is
|
||||
if p.tok.kind == tNL {
|
||||
if t, err := p.lookahead(); err != nil {
|
||||
return nil, err
|
||||
} else if t.kind == tLT {
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
}
|
||||
if p.tok.kind == tLT {
|
||||
args, err := p.args()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
n.Args = args
|
||||
}
|
||||
switch p.tok.kind {
|
||||
case tNL, tEOF, tGT:
|
||||
default:
|
||||
return nil, &ParseError{p.tok.line, fmt.Sprintf("unexpected %q after %s", p.tok.text, n.Name)}
|
||||
}
|
||||
out = append(out, n)
|
||||
}
|
||||
}
|
||||
|
||||
// args reads <...>, p.tok being the <.
|
||||
func (p *parser) args() ([]Value, error) {
|
||||
line := p.tok.line
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if p.tok.kind == tNL {
|
||||
// a nested stream
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
s, err := p.atoms(true)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return []Value{{Kind: KindStream, Stream: s}}, nil
|
||||
}
|
||||
var out []Value
|
||||
if p.tok.kind == tGT {
|
||||
return out, p.advance()
|
||||
}
|
||||
for {
|
||||
v, err := p.value()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
out = append(out, v)
|
||||
switch p.tok.kind {
|
||||
case tComma:
|
||||
if err := p.advance(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
case tGT:
|
||||
return out, p.advance()
|
||||
default:
|
||||
return nil, &ParseError{line, fmt.Sprintf("expected , or > in the argument, found %q", p.tok.text)}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// value reads one value, or values or'd together.
|
||||
func (p *parser) value() (Value, error) {
|
||||
v, err := p.term()
|
||||
if err != nil || p.tok.kind != tPipe {
|
||||
return v, err
|
||||
}
|
||||
pipe := Value{Kind: KindPipe, Parts: []Value{v}}
|
||||
for p.tok.kind == tPipe {
|
||||
if err := p.advance(); err != nil {
|
||||
return v, err
|
||||
}
|
||||
t, err := p.term()
|
||||
if err != nil {
|
||||
return v, err
|
||||
}
|
||||
pipe.Parts = append(pipe.Parts, t)
|
||||
}
|
||||
return pipe, nil
|
||||
}
|
||||
|
||||
func (p *parser) term() (Value, error) {
|
||||
t := p.tok
|
||||
var v Value
|
||||
switch t.kind {
|
||||
case tNum:
|
||||
n, err := strconv.ParseInt(t.text, 10, 64)
|
||||
if err != nil {
|
||||
return v, &ParseError{t.line, "number out of range: " + t.text}
|
||||
}
|
||||
v = Value{Kind: KindNum, Num: n}
|
||||
case tHex:
|
||||
h := t.text[:len(t.text)-1]
|
||||
if len(h)%2 == 1 {
|
||||
h = "0" + h
|
||||
}
|
||||
b := make([]byte, len(h)/2)
|
||||
for i := range b {
|
||||
x, _ := strconv.ParseUint(h[2*i:2*i+2], 16, 8)
|
||||
b[i] = byte(x)
|
||||
}
|
||||
v = Value{Kind: KindHex, Bytes: b}
|
||||
case tGID:
|
||||
var g []int64
|
||||
for _, s := range strings.Split(t.text, "-") {
|
||||
n, err := strconv.ParseInt(s, 10, 64)
|
||||
if err != nil {
|
||||
return v, &ParseError{t.line, "bad global id " + t.text}
|
||||
}
|
||||
g = append(g, n)
|
||||
}
|
||||
v = Value{Kind: KindGID, GID: g}
|
||||
case tString:
|
||||
v = Value{Kind: KindString, Bytes: unescape(t.text)}
|
||||
case tWord:
|
||||
v = Value{Kind: KindWord, Text: t.text}
|
||||
default:
|
||||
return v, &ParseError{t.line, fmt.Sprintf("expected a value, found %q", t.text)}
|
||||
}
|
||||
return v, p.advance()
|
||||
}
|
||||
|
||||
// unescape turns a string's escapes into bytes. The rest of the string
|
||||
// is taken byte for byte, as Ada32 does: write Latin-1 text with \xNN, or
|
||||
// give the compiler the bytes the client should get.
|
||||
func unescape(s string) []byte {
|
||||
b := make([]byte, 0, len(s))
|
||||
for i := 0; i < len(s); i++ {
|
||||
c := s[i]
|
||||
if c != '\\' || i+1 >= len(s) {
|
||||
b = append(b, c)
|
||||
continue
|
||||
}
|
||||
i++
|
||||
switch s[i] {
|
||||
case 'n':
|
||||
b = append(b, '\n')
|
||||
case 'r':
|
||||
b = append(b, '\r')
|
||||
case 't':
|
||||
b = append(b, '\t')
|
||||
case '\\':
|
||||
b = append(b, '\\')
|
||||
case '"':
|
||||
b = append(b, '"')
|
||||
case 'x':
|
||||
if i+2 < len(s) && isHex(s[i+1]) && isHex(s[i+2]) {
|
||||
x, _ := strconv.ParseUint(s[i+1:i+3], 16, 8)
|
||||
b = append(b, byte(x))
|
||||
i += 2
|
||||
} else {
|
||||
b = append(b, '\\', 'x')
|
||||
}
|
||||
default:
|
||||
b = append(b, '\\', s[i])
|
||||
}
|
||||
}
|
||||
return b
|
||||
}
|
||||
@@ -0,0 +1,285 @@
|
||||
package fdo
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"sort"
|
||||
)
|
||||
|
||||
// candidates are the forms the decompiler tries for an atom's data, best
|
||||
// first; the first that compiles back to the data wins, and hex is the
|
||||
// last resort.
|
||||
func candidates(a *Atom, d []byte) [][]Value {
|
||||
var out [][]Value
|
||||
add := func(v ...Value) { out = append(out, v) }
|
||||
word := func(s string) Value { return Value{Kind: KindWord, Text: s} }
|
||||
num := func(n int64) Value { return Value{Kind: KindNum, Num: n} }
|
||||
str := func(b []byte) Value { return Value{Kind: KindString, Bytes: b} }
|
||||
|
||||
if a.Type != TypeObject && a.Type != TypeAlert && a.Name != "mat_title_pos" && a.Name != "mat_text_on_picture_pos" {
|
||||
if v, ok := enumRender(a, 0, d); ok {
|
||||
add(v)
|
||||
}
|
||||
}
|
||||
switch a.Name {
|
||||
case "man_get_display_characteristics":
|
||||
if len(d) >= 2 {
|
||||
if v, ok := enumRender(a, 0, d[:1]); ok {
|
||||
add(v, num(beNumber(d[1:])))
|
||||
}
|
||||
}
|
||||
case "mat_auto_complete":
|
||||
var vals []Value
|
||||
for _, c := range d {
|
||||
vals = append(vals, word(map[byte]string{0: "web_list", 1: "address_list", 2: "other_list"}[c]))
|
||||
}
|
||||
if len(d) == 2 && d[1] == 1 {
|
||||
vals[1] = word("std_sort_search")
|
||||
}
|
||||
add(vals...)
|
||||
case "mat_title_pos":
|
||||
if len(d) == 1 && d[0]&3 != 3 {
|
||||
// always where and how it's justified: <below | center>
|
||||
p := []Value{
|
||||
word([]string{"left", "above", "right", "below"}[d[0]>>6]),
|
||||
word([]string{"center", "top_or_left", "bottom_or_right"}[d[0]&3])}
|
||||
if r := d[0] & 0x3C; r != 0 {
|
||||
p = append(p, num(int64(r)))
|
||||
}
|
||||
add(Value{Kind: KindPipe, Parts: p})
|
||||
}
|
||||
case "mat_text_on_picture_pos":
|
||||
if len(d) == 1 {
|
||||
art, title := map[byte]string{0: "art_middle_center", 0x40: "art_middle_left", 0x50: "art_middle_right"}[d[0]&0xF0],
|
||||
map[byte]string{0: "title_middle_center", 2: "title_upper_center", 4: "title_middle_left",
|
||||
5: "title_middle_right", 7: "title_lower_center"}[d[0]&0x0F]
|
||||
if art != "" && title != "" {
|
||||
add(Value{Kind: KindPipe, Parts: []Value{word(art), word(title)}})
|
||||
}
|
||||
}
|
||||
case "mat_size":
|
||||
switch len(d) {
|
||||
case 2:
|
||||
add(num(int64(d[0])), num(int64(d[1])))
|
||||
case 4:
|
||||
add(num(int64(d[0])), num(int64(d[1])), num(beNumber(d[2:])))
|
||||
}
|
||||
case "hfs_attr_field_mapping", "hfs_attr_variable_mapping", "hfs_attr_dispatch_mapping":
|
||||
if len(d) == 8 {
|
||||
add(num(beNumber(d[:4])), num(beNumber(d[4:])))
|
||||
}
|
||||
case "hfs_attr_checkbox_mapping":
|
||||
if len(d) >= 4 {
|
||||
add(num(beNumber(d[:4])), str(d[4:]))
|
||||
}
|
||||
}
|
||||
if es := atomEnums[a.Name]; len(es) > 1 && len(d) <= len(es) {
|
||||
// one byte a place: mat_font_sis <arial, 10, bold>
|
||||
var vals []Value
|
||||
for i := range d {
|
||||
if v, ok := enumRender(a, i, d[i:i+1]); ok {
|
||||
vals = append(vals, v)
|
||||
} else {
|
||||
vals = append(vals, num(int64(d[i])))
|
||||
}
|
||||
}
|
||||
add(vals...)
|
||||
}
|
||||
switch a.Type {
|
||||
case TypeStream:
|
||||
if frames, err := Decode(d); err == nil && bytes.Equal(Encode(frames), d) {
|
||||
add(Value{Kind: KindStream, streamFrames: frames})
|
||||
}
|
||||
case TypeDword, TypeCriterion:
|
||||
add(num(beNumber(d)))
|
||||
case TypeString:
|
||||
if textual(d) {
|
||||
add(str(d))
|
||||
}
|
||||
case TypeBool:
|
||||
if len(d) == 1 && d[0] <= 1 {
|
||||
add(word(map[byte]string{0: "no", 1: "yes"}[d[0]]))
|
||||
}
|
||||
case TypeGID:
|
||||
if g := gidValue(d); g != nil {
|
||||
add(*g)
|
||||
}
|
||||
add(num(beNumber(d)))
|
||||
case TypeAtom, TypeList:
|
||||
if len(d) == 2 {
|
||||
if r, ok := LookupNum(d[0], d[1]); ok {
|
||||
add(word(r.Name))
|
||||
}
|
||||
}
|
||||
if a.Type == TypeList && len(d) > 1 && textual(d[1:]) {
|
||||
add(num(int64(d[0])), str(d[1:]))
|
||||
}
|
||||
if len(d) > 2 {
|
||||
if r, ok := LookupNum(d[0], d[1]); ok {
|
||||
add(word(r.Name), Value{Kind: KindHex, Bytes: d[2:]})
|
||||
}
|
||||
}
|
||||
case TypeObject, TypeAlert:
|
||||
if len(d) >= 1 {
|
||||
if v, ok := enumRender(a, 0, d[:1]); ok && v.Kind == KindWord {
|
||||
add(v, str(d[1:]))
|
||||
}
|
||||
add(Value{Kind: KindHex, Bytes: d[:1]}, str(d[1:]))
|
||||
}
|
||||
case TypeVar:
|
||||
var vals []Value
|
||||
for _, c := range d {
|
||||
if c >= 26 {
|
||||
vals = nil
|
||||
break
|
||||
}
|
||||
vals = append(vals, word(string(rune('A'+c))))
|
||||
}
|
||||
if vals != nil {
|
||||
add(vals...)
|
||||
}
|
||||
case TypeVarNumber:
|
||||
if len(d) == 1 && d[0] < 26 {
|
||||
add(word(string(rune('A' + d[0]))))
|
||||
}
|
||||
if len(d) >= 2 && d[0] < 26 {
|
||||
add(word(string(rune('A'+d[0]))), num(beNumber(d[1:])))
|
||||
}
|
||||
case TypeVarString:
|
||||
if len(d) >= 1 && d[0] < 26 {
|
||||
add(word(string(rune('A'+d[0]))), str(d[1:]))
|
||||
}
|
||||
case TypeByteList:
|
||||
var vals []Value
|
||||
for _, c := range d {
|
||||
vals = append(vals, num(int64(c)))
|
||||
}
|
||||
add(vals...)
|
||||
case TypeToken:
|
||||
// a token, then (usually) a global id or a number
|
||||
if len(d) > 2 && printable(d[:2]) {
|
||||
if len(d) == 3 && d[2] < 10 {
|
||||
add(str(d[:2]), num(int64(d[2])))
|
||||
}
|
||||
if g := tokenGID(a, d[2:]); g != nil {
|
||||
add(str(d[:2]), *g)
|
||||
}
|
||||
}
|
||||
if len(d) >= 2 && printable(d) {
|
||||
add(str(d))
|
||||
} else if len(d) > 2 && printable(d[:2]) {
|
||||
add(str(d[:2]), Value{Kind: KindHex, Bytes: d[2:]})
|
||||
}
|
||||
}
|
||||
if len(d) >= 1 && len(d) <= 4 && a.Type != TypeRaw && a.Type != TypeString {
|
||||
add(num(beNumber(d)))
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
// textual is whether Ada32's disassembler writes b as a string: no
|
||||
// control characters but tab, CR and LF.
|
||||
func textual(b []byte) bool {
|
||||
for _, c := range b {
|
||||
if c < 0x20 && c != '\t' && c != '\r' && c != '\n' {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// gid3 are the token atoms whose global ids Ada32 writes in three parts,
|
||||
// 0-36-7232 where the others write 36-7232.
|
||||
var gid3 = map[string]bool{"sm_m_send_token_arg": true, "de_ez_send_form": true, "sm_send_token_arg": true}
|
||||
|
||||
// tokenGID shows the bytes after a token as a global id.
|
||||
func tokenGID(a *Atom, d []byte) *Value {
|
||||
switch {
|
||||
case len(d) == 1:
|
||||
return &Value{Kind: KindGID, GID: []int64{0, 0, beNumber(d)}}
|
||||
case len(d) == 2 && gid3[a.Name]:
|
||||
return &Value{Kind: KindGID, GID: []int64{0, 0, beNumber(d)}}
|
||||
case len(d) == 2:
|
||||
return &Value{Kind: KindGID, GID: []int64{0, beNumber(d)}}
|
||||
case len(d) == 3 && gid3[a.Name]:
|
||||
return &Value{Kind: KindGID, GID: []int64{0, int64(d[0]), beNumber(d[1:])}}
|
||||
case len(d) == 3 || len(d) == 4:
|
||||
return gidValue(d)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func printable(b []byte) bool {
|
||||
for _, c := range b {
|
||||
if c < 0x20 || c >= 0x7F {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
// enumRender shows d as the i'th place's named value, or flags or'd.
|
||||
func enumRender(a *Atom, i int, d []byte) (Value, bool) {
|
||||
if a.Type == TypeOrient && i == 0 {
|
||||
if len(d) == 1 {
|
||||
if w, ok := orientName(d[0]); ok {
|
||||
return Value{Kind: KindWord, Text: w}, true
|
||||
}
|
||||
}
|
||||
return Value{}, false
|
||||
}
|
||||
e := enumAt(a, i)
|
||||
if e == nil || len(d) != e.width {
|
||||
return Value{}, false
|
||||
}
|
||||
v := uint32(beNumber(d))
|
||||
if w, ok := e.name(v); ok {
|
||||
return Value{Kind: KindWord, Text: w}, true
|
||||
}
|
||||
if !e.flags {
|
||||
return Value{}, false
|
||||
}
|
||||
// flags: the biggest named values that fit, then what's left as a number
|
||||
vals := append([]namedValue(nil), e.vals...)
|
||||
sort.SliceStable(vals, func(i, j int) bool { return vals[i].val > vals[j].val })
|
||||
var named []namedValue
|
||||
rest := v
|
||||
for _, f := range vals {
|
||||
if f.val != 0 && f.name[0] != '~' && rest&f.val == f.val {
|
||||
named = append(named, f)
|
||||
rest &^= f.val
|
||||
}
|
||||
}
|
||||
if !e.desc {
|
||||
sort.SliceStable(named, func(i, j int) bool { return named[i].val < named[j].val })
|
||||
}
|
||||
var parts []Value
|
||||
for _, f := range named {
|
||||
parts = append(parts, Value{Kind: KindWord, Text: f.name})
|
||||
}
|
||||
if rest != 0 {
|
||||
parts = append(parts, Value{Kind: KindNum, Num: int64(rest)})
|
||||
}
|
||||
if len(parts) < 2 {
|
||||
return Value{}, false
|
||||
}
|
||||
return Value{Kind: KindPipe, Parts: parts}, true
|
||||
}
|
||||
|
||||
func beNumber(d []byte) int64 {
|
||||
var n int64
|
||||
for _, c := range d {
|
||||
n = n<<8 | int64(c)
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// gidValue reads 3 bytes as a-b and 4 as a-b-c.
|
||||
func gidValue(d []byte) *Value {
|
||||
switch len(d) {
|
||||
case 3:
|
||||
return &Value{Kind: KindGID, GID: []int64{int64(d[0]), int64(d[1])<<8 | int64(d[2])}}
|
||||
case 4:
|
||||
return &Value{Kind: KindGID, GID: []int64{int64(d[0]), int64(d[1]), int64(d[2])<<8 | int64(d[3])}}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
From AtomForge's test corpus (atomforge-fdo-java, src/test/resources;
|
||||
Copyright AtomForge Contributors, MIT License: ../LICENSE.atomforge):
|
||||
|
||||
- golden: 93 of its golden files, FDO91 source (.txt) and the atom
|
||||
stream Ada32.dll compiled it to (.bin), picked to have as many
|
||||
different atoms as they can.
|
||||
- livecapture: its 44 streams captured from a live AOL client, as
|
||||
source and bytes.
|
||||
BIN
Binary file not shown.
+55
@@ -0,0 +1,55 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Old Item">
|
||||
mat_object_id <32-118>
|
||||
mat_orientation <hff>
|
||||
mat_position <center_center>
|
||||
man_start_object <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_size <15, 11>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_resize_horizontal <no>
|
||||
mat_bool_default_send <no>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on <00x>
|
||||
de_ez_send_list_text <"id", 01x, 00x, 00x, 00x, 01x>
|
||||
>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <vft>
|
||||
man_start_object <ornament, "">
|
||||
mat_art_id <1-0-1333>
|
||||
mat_bool_disabled <yes>
|
||||
man_start_sibling <trigger, "Sub Block">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_wait_on
|
||||
de_start_extraction <0>
|
||||
man_set_context_relative <1>
|
||||
de_get_data_pointer
|
||||
uni_save_result
|
||||
de_end_extraction
|
||||
uni_invoke_no_context <32-225>
|
||||
man_set_context_globalid <32-225>
|
||||
man_place_cursor <2>
|
||||
man_set_context_relative <1>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <var_string_trim_spaces>
|
||||
uni_use_last_atom_string <man_append_data>
|
||||
man_end_context
|
||||
man_update_display
|
||||
buf_close_buffer
|
||||
uni_wait_off
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "delt">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on <00x>
|
||||
de_ez_send_list_text <"id", 01x, 00x, 00x, 00x, 01x>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+46
@@ -0,0 +1,46 @@
|
||||
uni_start_stream
|
||||
idb_set_context <20-0-258>
|
||||
idb_atr_offset <0>
|
||||
idb_get_value <04x>
|
||||
var_number_set_from_atom <B>
|
||||
idb_end_context
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <idb_set_context>
|
||||
idb_atr_offset <0>
|
||||
idb_get_value <04x>
|
||||
var_number_set_from_atom <D>
|
||||
var_number_set <C, 4>
|
||||
uni_start_loop
|
||||
var_number_get <C>
|
||||
uni_use_last_atom_value <idb_atr_offset>
|
||||
idb_get_value <04x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_neq_numb_then <1>
|
||||
var_number_get <C>
|
||||
var_number_set_from_atom <A>
|
||||
var_number_add <8>
|
||||
var_number_get <A>
|
||||
var_number_set_from_atom <C>
|
||||
var_number_decrement <D>
|
||||
var_number_get <D>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_true_then <2>
|
||||
uni_end_loop
|
||||
uni_sync_skip <1>
|
||||
var_number_get <C>
|
||||
var_number_set_from_atom <A>
|
||||
var_number_add <4>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <idb_atr_offset>
|
||||
idb_get_value <04x>
|
||||
uni_use_last_atom_value <uni_invoke_local>
|
||||
idb_end_context
|
||||
var_number_set <A, 0>
|
||||
if_numa_true_then <3>
|
||||
uni_sync_skip <2>
|
||||
idb_atr_offset <8>
|
||||
idb_get_value <04x>
|
||||
uni_use_last_atom_value <uni_invoke_local>
|
||||
idb_end_context
|
||||
uni_sync_skip <3>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+238
@@ -0,0 +1,238 @@
|
||||
uni_start_stream
|
||||
idb_set_context <20-0-16>
|
||||
idb_atr_offset <1>
|
||||
idb_get_string
|
||||
var_string_set_from_atom <A>
|
||||
var_string_set <B,"Default Main">
|
||||
idb_end_context
|
||||
if_stra_eq_strb_then <10, 99>
|
||||
async_error_box <"Complex Window Region">
|
||||
uni_sync_skip <10>
|
||||
lm_table_use_table <20-0-65>
|
||||
man_start_object <ind_group, "">
|
||||
mat_bool_modal <yes>
|
||||
mat_orientation <vef>
|
||||
mat_object_id <32-2164>
|
||||
mat_title <"Default West Screen">
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <ornament, "">
|
||||
mat_title <"Special Epsilon">
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_title <"Previous Theta">
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <sms_list, "">
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <1>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <edit_view, "">
|
||||
mat_height <1>
|
||||
mat_width <10>
|
||||
mat_capacity <8>
|
||||
mat_bool_protected_input <yes>
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <2>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <sms_list, "">
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <3>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <edit_view, "">
|
||||
mat_height <1>
|
||||
mat_width <10>
|
||||
mat_relative_tag <4>
|
||||
mat_capacity <8>
|
||||
mat_bool_protected_input <yes>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <sms_list, "">
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <5>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <edit_view, "">
|
||||
mat_height <1>
|
||||
mat_width <10>
|
||||
mat_capacity <8>
|
||||
mat_bool_protected_input <yes>
|
||||
mat_relative_tag <6>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <sms_list, "">
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <7>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <edit_view, "">
|
||||
mat_height <1>
|
||||
mat_width <10>
|
||||
mat_capacity <8>
|
||||
mat_bool_protected_input <yes>
|
||||
mat_relative_tag <8>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <sms_list, "">
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_hidden <yes>
|
||||
mat_relative_tag <9>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <edit_view, "">
|
||||
mat_height <1>
|
||||
mat_width <10>
|
||||
mat_capacity <8>
|
||||
mat_bool_protected_input <yes>
|
||||
mat_relative_tag <10>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vef>
|
||||
man_start_object <ornament, "">
|
||||
mat_height <4>
|
||||
mat_width <30>
|
||||
mat_font_sis <arial, 9, normal>
|
||||
man_append_data <"old delete handle sub create north invoke create. north open simple unit save top invoke east. zone process simple first">
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "">
|
||||
mat_bool_default <yes>
|
||||
mat_title <"OK">
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
lm_table_use_table <20-0-65>
|
||||
lm_table_clear
|
||||
mip_clear_active_names
|
||||
de_start_extraction <0>
|
||||
var_number_set <A, 1>
|
||||
var_number_set <B, 10>
|
||||
uni_start_loop
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <man_set_context_relative>
|
||||
man_get_attribute <mat_bool_hidden>
|
||||
if_last_return_true_then <7>
|
||||
man_end_context
|
||||
var_number_set <C, 0>
|
||||
if_last_return_true_then <20>
|
||||
uni_sync_skip <7>
|
||||
de_set_data_type <text>
|
||||
de_get_data_pointer
|
||||
uni_save_result
|
||||
uni_use_last_atom_string <lm_table_use_key>
|
||||
de_set_data_type <default>
|
||||
de_get_data_value
|
||||
if_last_return_true_then <101>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mip_set_name_active>
|
||||
uni_sync_skip <101>
|
||||
man_end_context
|
||||
var_number_increment <A>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <man_set_context_relative>
|
||||
man_get_attribute <mat_bool_hidden>
|
||||
if_last_return_false_then <14>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <lm_table_set_item>
|
||||
uni_sync_skip <14>
|
||||
man_end_context
|
||||
var_number_increment <A>
|
||||
if_numa_lt_numb_then <20>
|
||||
uni_end_loop
|
||||
uni_sync_skip <20>
|
||||
de_end_extraction
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_title <"Third East">
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_end_object
|
||||
man_set_context_globalid <32-2164>
|
||||
var_number_set <A, 6>
|
||||
idb_set_context <20-0-16>
|
||||
idb_atr_offset <0>
|
||||
idb_get_value
|
||||
var_number_set_from_atom <B>
|
||||
if_numa_lte_numb_then <1>
|
||||
var_number_set <B, 5>
|
||||
uni_sync_skip <1>
|
||||
var_number_set <C, 0>
|
||||
var_number_set <D, 0>
|
||||
var_string_set <B,"Third Corner">
|
||||
var_number_set <A, 1>
|
||||
uni_start_loop
|
||||
uni_use_last_atom_value <idb_atr_offset>
|
||||
var_number_increment <C>
|
||||
var_number_get <C>
|
||||
uni_use_last_atom_value <man_set_context_relative>
|
||||
idb_get_string
|
||||
var_string_set_from_atom <A>
|
||||
if_stra_eq_strb_then <5>
|
||||
var_number_set <D, 1>
|
||||
uni_sync_skip <5>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <mat_title>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <mip_is_name_active>
|
||||
uni_use_last_atom_value <mat_value>
|
||||
var_number_get <D>
|
||||
uni_use_last_atom_value <mat_bool_hidden>
|
||||
man_end_context
|
||||
var_number_increment <C>
|
||||
var_number_get <C>
|
||||
uni_use_last_atom_value <man_set_context_relative>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <lm_table_get_item>
|
||||
uni_save_result
|
||||
if_last_return_true_then <15>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
uni_sync_skip <15>
|
||||
var_number_get <D>
|
||||
uni_use_last_atom_value <mat_bool_hidden>
|
||||
man_end_context
|
||||
var_number_decrement <B>
|
||||
if_numb_true_then <2>
|
||||
var_number_add <22>
|
||||
uni_end_loop
|
||||
uni_sync_skip <2>
|
||||
idb_end_context
|
||||
man_update_display
|
||||
uni_sync_skip <99>
|
||||
uni_wait_off
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+156
@@ -0,0 +1,156 @@
|
||||
uni_start_stream
|
||||
uni_wait_off
|
||||
man_start_object <ind_group, "">
|
||||
mat_object_id <32-234>
|
||||
mat_title <"Complex Thing North">
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vef>
|
||||
man_start_object <dss_list, "">
|
||||
mat_title <"Fourth Button Epsilon">
|
||||
mat_relative_tag <1>
|
||||
mat_width <72>
|
||||
mat_height <10>
|
||||
mat_ruler <22>
|
||||
mat_ruler <56>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <4>
|
||||
man_get_attribute <mat_bool_disabled>
|
||||
if_last_return_false_then <1>
|
||||
act_do_action <select>
|
||||
uni_sync_skip <1>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hlf>
|
||||
man_start_object <ornament, "">
|
||||
mat_title <"Second Frame Side">
|
||||
mat_height <1>
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_relative_tag <2>
|
||||
mat_height <1>
|
||||
mat_width <37>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_relative_tag <3>
|
||||
mat_height <1>
|
||||
mat_width <68>
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1467>
|
||||
mat_title <"pane\x7fCurrent South">
|
||||
mat_relative_tag <4>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_wait_on
|
||||
xfer_show_file_description <00x, 20x, 00x, eax>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1469>
|
||||
mat_title <"Special Sigma\x7fsub">
|
||||
mat_relative_tag <5>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream_wait_on
|
||||
lm_user_delete_item <2097386>
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1310>
|
||||
mat_title <"Primary Window\x7fFirst Beta">
|
||||
mat_relative_tag <6>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
lm_open_window <32-235>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1468>
|
||||
mat_title <"Simple Bottom\x7fSub Theta">
|
||||
mat_relative_tag <7>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
fm_start
|
||||
fm_add_file_type_mask
|
||||
fm_item_type <filename>
|
||||
fm_item_set <"path">
|
||||
fm_dialog_put_file <"Previous Epsilon">
|
||||
fm_handle_error <display_msg | terminate>
|
||||
fm_item_get <path>
|
||||
uni_save_result
|
||||
man_set_context_relative <2>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_end_context
|
||||
man_update_display
|
||||
idb_start_obj <"t">
|
||||
idb_atr_globalid <20-2-14>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <idb_append_data>
|
||||
idb_end_obj
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1292>
|
||||
mat_title <"Main Form\x7fStandard Corner">
|
||||
mat_relative_tag <8>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
xfer_start_download
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1309>
|
||||
mat_title <"Active Dialog\x7fActive Unit">
|
||||
mat_relative_tag <10>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on <00x>
|
||||
man_preset_gid <32-280>
|
||||
if_last_return_true_then <1, 2>
|
||||
man_make_focus
|
||||
man_update_display
|
||||
uni_sync_skip <1>
|
||||
uni_invoke_no_context <32-280>
|
||||
uni_sync_skip <2>
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1325>
|
||||
mat_title <"righ">
|
||||
mat_relative_tag <9>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on
|
||||
async_exec_context_help <44x, 6fx, 77x, 6ex, 6cx, 6fx, 61x, 64x>
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_end_object
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+123
@@ -0,0 +1,123 @@
|
||||
uni_start_stream
|
||||
uni_wait_off
|
||||
man_start_object <ind_group, "">
|
||||
mat_object_id <32-235>
|
||||
mat_title <"Third Right Component">
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vef>
|
||||
man_start_object <dss_list, "">
|
||||
mat_title <"Advanced Corner South">
|
||||
mat_relative_tag <1>
|
||||
mat_width <71>
|
||||
mat_height <10>
|
||||
mat_ruler <22>
|
||||
mat_ruler <52>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <2>
|
||||
man_get_attribute <mat_bool_disabled>
|
||||
if_last_return_false_then <1>
|
||||
act_do_action <select>
|
||||
uni_sync_skip <1>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1467>
|
||||
mat_title <"pane\x7fCurrent South">
|
||||
mat_relative_tag <2>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_wait_on
|
||||
xfer_show_file_description <00x, 20x, 00x, ebx>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1469>
|
||||
mat_title <"Special Sigma\x7fsub">
|
||||
mat_relative_tag <3>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
lm_user_delete_item <2097387>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1324>
|
||||
mat_title <"bloc\x7fComplex North">
|
||||
mat_relative_tag <4>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
xfer_show_file_status <00x, 20x, 00x, ebx>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1292>
|
||||
mat_title <"New Delta">
|
||||
mat_relative_tag <5>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
xfer_decompress_file <00x, 20x, 00x, ebx>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1310>
|
||||
mat_title <"Sub Left\x7fSub Sub">
|
||||
mat_relative_tag <6>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
sm_enter_paid
|
||||
lm_open_window <32-234>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1309>
|
||||
mat_title <"Active Dialog\x7fActive Unit">
|
||||
mat_relative_tag <8>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on <00x>
|
||||
man_preset_gid <32-280>
|
||||
if_last_return_true_then <1, 2>
|
||||
man_make_focus
|
||||
man_update_display
|
||||
uni_sync_skip <1>
|
||||
uni_invoke_no_context <32-280>
|
||||
uni_sync_skip <2>
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1325>
|
||||
mat_title <"righ">
|
||||
mat_relative_tag <7>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on <00x>
|
||||
async_exec_context_help <44x, 6fx, 77x, 6ex, 6cx, 6fx, 61x, 64x>
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_end_object
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+19
@@ -0,0 +1,19 @@
|
||||
uni_start_stream
|
||||
var_number_set <A, 0>
|
||||
man_item_get <3>
|
||||
if_last_return_true_then <1>
|
||||
fm_start
|
||||
man_logging_command <3>
|
||||
man_logging_command <2>
|
||||
fm_end
|
||||
var_numa_increment
|
||||
uni_sync_skip <1>
|
||||
man_item_get <2>
|
||||
if_last_return_true_then <1>
|
||||
fm_start
|
||||
man_logging_command <4>
|
||||
man_logging_command <2>
|
||||
fm_end
|
||||
var_numa_increment
|
||||
uni_sync_skip <1>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+34
@@ -0,0 +1,34 @@
|
||||
uni_start_stream
|
||||
man_set_response_id <8436>
|
||||
man_start_object <ind_group, "">
|
||||
mat_position <top_right>
|
||||
mat_object_id <32-244>
|
||||
mat_title <"Main Alpha">
|
||||
mat_orientation <vff>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1331>
|
||||
mat_title <"form">
|
||||
mat_command_key <43x, 00x>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_invoke_no_context <32-245>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1292>
|
||||
mat_command_key <46x, 00x>
|
||||
mat_title <"Simple Form">
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_art_id <1-0-1305>
|
||||
mat_command_key <4cx, 00x>
|
||||
mat_title <"Simple Corner">
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_end_object
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+119
@@ -0,0 +1,119 @@
|
||||
uni_start_stream
|
||||
man_set_context_globalid <52>
|
||||
man_start_object <ind_group, "">
|
||||
mat_bool_modal <yes>
|
||||
mat_object_id <32-220>
|
||||
mat_bool_background_tile <yes>
|
||||
mat_art_id <1-0-21743>
|
||||
var_number_set <A, 0>
|
||||
var_number_save <A, 64>
|
||||
act_set_criterion <130>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
var_number_get <A>
|
||||
if_numa_false_then <10>
|
||||
man_set_context_relative <1>
|
||||
mat_art_id <1-0-21181>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <10>
|
||||
if_numa_eq_one_then <20>
|
||||
man_set_context_relative <2>
|
||||
mat_art_id <1-0-21193>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <20>
|
||||
if_numa_gt_one_then <30>
|
||||
man_set_context_relative <3>
|
||||
mat_art_id <1-0-21180>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <30>
|
||||
var_number_increment <A>
|
||||
var_number_save <A, 64>
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <129>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
mat_art_frame <0>
|
||||
man_end_context
|
||||
man_set_context_relative <2>
|
||||
mat_art_frame <0>
|
||||
man_end_context
|
||||
man_set_context_relative <3>
|
||||
mat_art_frame <0>
|
||||
man_end_context
|
||||
man_update_display
|
||||
var_number_set <A, 0>
|
||||
var_number_save <A, 64>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vcc>
|
||||
man_start_object <ornament, "">
|
||||
mat_art_id <1-0-21185>
|
||||
man_end_object
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hcc>
|
||||
man_start_object <ornament, "">
|
||||
mat_frame_style <single_line_pop_out>
|
||||
mat_art_id <1-0-21182>
|
||||
mat_relative_tag <1>
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_frame_style <single_line_pop_out>
|
||||
mat_art_id <1-0-21183>
|
||||
mat_relative_tag <2>
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_frame_style <single_line_pop_out>
|
||||
mat_art_id <1-0-21194>
|
||||
mat_relative_tag <3>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_relative_tag <4>
|
||||
mat_height <1>
|
||||
mat_width <45>
|
||||
mat_orientation <hcc>
|
||||
mat_title <" ">
|
||||
man_end_object
|
||||
man_start_object <ornament, "">
|
||||
mat_art_id <1-0-1363>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_title <"Third East">
|
||||
mat_title_width <10>
|
||||
mat_font_sis <arial, 10, bold>
|
||||
mat_trigger_style <place>
|
||||
mat_bool_gradual_shadow <yes>
|
||||
mat_color_text <240, 240, 240>
|
||||
mat_color_face <100, 100, 178>
|
||||
mat_color_top_edge <150, 200, 255>
|
||||
mat_color_bottom_edge <1, 1, 1>
|
||||
act_set_criterion <select>
|
||||
act_append_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close <32-220>
|
||||
uni_invoke_no_context <32-221>
|
||||
man_set_context_globalid <32-221>
|
||||
mat_bool_invisible <no>
|
||||
man_update_display <32-221>
|
||||
man_end_context
|
||||
man_update_display <32-220>
|
||||
ccl_hang_up
|
||||
mip_action_command <0ax>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_end_object
|
||||
ccl_dial
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+14
@@ -0,0 +1,14 @@
|
||||
uni_start_stream
|
||||
man_close <32-220>
|
||||
uni_invoke_no_context <32-221>
|
||||
man_set_context_globalid <32-221>
|
||||
act_set_index <01x>
|
||||
if_test_index_false_then
|
||||
act_clr_test_index
|
||||
mat_bool_invisible <no>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <1>
|
||||
ccl_hang_up
|
||||
man_update_display <32-220>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+6
@@ -0,0 +1,6 @@
|
||||
uni_start_stream
|
||||
act_get_db_value <14x, 00x, 00x, 29x>
|
||||
if_last_return_true_then <1>
|
||||
man_response_pop
|
||||
uni_sync_skip <1>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+105
@@ -0,0 +1,105 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "First Frame">
|
||||
mat_style_id <32-425>
|
||||
mat_orientation <vff>
|
||||
mat_object_id <32-425>
|
||||
mat_position <center_center>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_size <40, 8>
|
||||
mat_relative_tag <1>
|
||||
mat_title_pos <above | center>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_resize_horizontal <no>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <5>
|
||||
man_get_attribute <mat_bool_disabled>
|
||||
uni_save_result
|
||||
man_end_context
|
||||
uni_get_result
|
||||
if_last_return_false_then <1, 2>
|
||||
ad_to
|
||||
uni_sync_skip <1>
|
||||
ad_modify
|
||||
man_set_context_globalid <32-427>
|
||||
man_set_context_relative <2>
|
||||
man_make_focus
|
||||
man_end_context
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <2>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "pan">
|
||||
mat_title_width <6>
|
||||
mat_relative_tag <5>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
ad_to
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "fra">
|
||||
mat_title_width <6>
|
||||
mat_relative_tag <6>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
ad_cc
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "Custom Frame">
|
||||
mat_title_width <6>
|
||||
mat_relative_tag <2>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
ad_add
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Active Side">
|
||||
mat_relative_tag <3>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
ad_modify
|
||||
man_set_context_globalid <32-427>
|
||||
man_set_context_relative <2>
|
||||
man_make_focus
|
||||
man_end_context
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Secondary Label">
|
||||
mat_title_width <6>
|
||||
mat_relative_tag <4>
|
||||
mat_command_key <91x, 00x>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
lm_user_delete_item <2097577>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "OK">
|
||||
mat_title_width <6>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+64
@@ -0,0 +1,64 @@
|
||||
uni_start_stream <00x>
|
||||
man_preset_gid <32-427>
|
||||
if_last_return_true_then <1>
|
||||
man_make_focus
|
||||
man_update_display
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
man_start_object <ind_group, "Default Thing">
|
||||
mat_object_id <32-427>
|
||||
mat_style_id <32-427>
|
||||
mat_orientation <vff>
|
||||
mat_position <center_center>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vff>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vff>
|
||||
man_start_object <ornament, "Advanced Area Left\"Current Item\")">
|
||||
mat_size <35, 1, 35>
|
||||
mat_font_id <system>
|
||||
man_start_sibling <edit_view, "">
|
||||
mat_size <32, 1, 31>
|
||||
mat_relative_tag <1>
|
||||
mat_capacity <31>
|
||||
mat_title_pos <left | center>
|
||||
mat_validation <128>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <vff>
|
||||
man_start_object <ornament, "Standard Sigma Theta\"Primary Dialog\")">
|
||||
mat_size <30, 1, 40>
|
||||
mat_font_id <system>
|
||||
man_start_sibling <edit_view, "">
|
||||
mat_size <50, 3, 256>
|
||||
mat_relative_tag <2>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "OK">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
de_validate <display_msg | terminate>
|
||||
ad_store
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Third East">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+21
@@ -0,0 +1,21 @@
|
||||
uni_start_stream <00x>
|
||||
man_use_default_title
|
||||
man_start_object <ind_group, "">
|
||||
mat_object_id <32-4589>
|
||||
mat_orientation <vff>
|
||||
mat_position <center_center>
|
||||
mat_style_id <32-4589>
|
||||
mat_dirty_query <yes>
|
||||
man_start_object <edit_view, "">
|
||||
mat_size <60, 14>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_vertical_scroll <no>
|
||||
mat_bool_writeable <yes>
|
||||
mat_managed_by <63>
|
||||
chart_bool_show_tools <yes>
|
||||
mat_width <570>
|
||||
mat_height <350>
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+170
@@ -0,0 +1,170 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Second West">
|
||||
mat_object_id <32-4645>
|
||||
mat_orientation <vff>
|
||||
mat_position <center_center>
|
||||
mat_style_id <32-44>
|
||||
act_set_criterion <close>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
morg_obj_destroy_children <"New Top">
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_object <view, "">
|
||||
mat_size <63, 10>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_writeable <yes>
|
||||
mat_size <63, 10>
|
||||
mat_managed_by <70>
|
||||
mat_font_sis <arial, 9, normal>
|
||||
morg_view_path <"New Top">
|
||||
uni_sync_skip <101>
|
||||
morg_view_highlight_full_line <yes>
|
||||
uni_sync_skip <101>
|
||||
morg_view_allow_delete_key <no>
|
||||
act_set_criterion <128>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
morg_view_has_mult_selections
|
||||
var_number_set_from_atom <B>
|
||||
morg_obj_count_children
|
||||
uni_save_result
|
||||
man_end_context
|
||||
uni_get_result
|
||||
if_last_return_false_then <10, 20>
|
||||
man_set_context_relative <17>
|
||||
mat_bool_disabled <yes>
|
||||
man_change_context_relative <2>
|
||||
mat_bool_disabled <yes>
|
||||
man_change_context_relative <6>
|
||||
mat_bool_disabled <yes>
|
||||
man_change_context_relative <8>
|
||||
mat_bool_disabled <yes>
|
||||
man_end_context
|
||||
uni_sync_skip <10>
|
||||
man_set_context_relative <17>
|
||||
mat_bool_disabled <no>
|
||||
man_end_context
|
||||
if_numb_false_then <171, 177>
|
||||
man_set_context_relative <2>
|
||||
mat_bool_disabled <no>
|
||||
man_change_context_relative <6>
|
||||
mat_bool_disabled <no>
|
||||
man_change_context_relative <8>
|
||||
mat_bool_disabled <no>
|
||||
man_end_context
|
||||
uni_sync_skip <171>
|
||||
man_set_context_relative <2>
|
||||
mat_bool_disabled <yes>
|
||||
man_change_context_relative <6>
|
||||
mat_bool_disabled <yes>
|
||||
man_change_context_relative <8>
|
||||
mat_bool_disabled <yes>
|
||||
man_end_context
|
||||
uni_sync_skip <177>
|
||||
uni_sync_skip <20>
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <130>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
act_do_action <128>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <22>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
buf_start_buffer <token_header | stream_id_header | host_bound | start_stream_header | end_stream_trailer | response_id_header>
|
||||
buf_set_token <"m2">
|
||||
lm_get_first_selection
|
||||
uni_save_result
|
||||
uni_start_loop
|
||||
uni_get_result
|
||||
if_last_return_true_then <1>
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <lm_delete_item_id>
|
||||
buf_set_data_atom <mip_preset_message_id>
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <buf_add_atom_data>
|
||||
buf_set_data_atom <mip_change_message_status>
|
||||
buf_add_atom_data <6>
|
||||
lm_get_next_selection
|
||||
uni_save_result
|
||||
uni_end_loop
|
||||
uni_sync_skip <1>
|
||||
buf_close_buffer
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "omeg">
|
||||
mat_relative_tag <2>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
morg_view_select_object
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Sub Object">
|
||||
mat_relative_tag <6>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on
|
||||
man_set_context_relative <1>
|
||||
lm_get_selected_item_id
|
||||
uni_save_result
|
||||
man_end_context
|
||||
buf_start_buffer <token_header | stream_id_header | host_bound | start_stream_header | end_stream_trailer | response_id_header>
|
||||
buf_set_token <"oS">
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <buf_add_atom_data>
|
||||
buf_close_buffer
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Dynamic Corner">
|
||||
mat_relative_tag <8>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on
|
||||
man_set_context_relative <1>
|
||||
lm_get_selected_item_id
|
||||
uni_save_result
|
||||
man_end_context
|
||||
buf_start_buffer <token_header | stream_id_header | host_bound | start_stream_header | end_stream_trailer | response_id_header>
|
||||
buf_set_token <"oR">
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <buf_add_atom_data>
|
||||
buf_close_buffer
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Secondary Label">
|
||||
mat_relative_tag <17>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
act_do_action <22>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
mat_command_key <91x, 00x>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_set_context_relative <1>
|
||||
act_do_action <128>
|
||||
man_end_context
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+149
@@ -0,0 +1,149 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Custom Edge Panel">
|
||||
mat_object_id <32-4653>
|
||||
mat_orientation <vff>
|
||||
mat_position <center_center>
|
||||
act_set_criterion <128>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
man_close_children
|
||||
fm_start
|
||||
fm_item_type <ini_file>
|
||||
fm_item_set <"VIEWERS.INI">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"VIEWERS">
|
||||
fm_item_type <ini_section_size>
|
||||
fm_item_set <"@\x00">
|
||||
fm_ini_get_section
|
||||
uni_start_loop
|
||||
fm_ini_get_next_line
|
||||
var_string_set_from_atom <A>
|
||||
if_stra_neq_null_then <1>
|
||||
fm_item_type <ini_key>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_ini_read_data <00x>
|
||||
uni_use_last_atom_string <man_preset_title>
|
||||
man_start_object <trigger, "">
|
||||
act_set_inheritance <02x>
|
||||
var_string_save <A, 1>
|
||||
man_end_object
|
||||
uni_end_loop
|
||||
uni_sync_skip <1>
|
||||
fm_end
|
||||
man_is_rendered
|
||||
if_last_return_true_then <1>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_size <40, 10>
|
||||
mat_relative_tag <1>
|
||||
mat_sort_order <alphabetical>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <2>
|
||||
act_do_action <select>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <vft>
|
||||
man_start_object <trigger, "Active Button">
|
||||
mat_title_width <7>
|
||||
mat_relative_tag <2>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
de_start_extraction <0>
|
||||
man_set_context_relative <1>
|
||||
de_set_data_type <index>
|
||||
de_get_data_value
|
||||
var_number_set_from_atom <A>
|
||||
uni_use_last_atom_value <man_set_context_index>
|
||||
var_lookup_by_id <A, 1>
|
||||
man_end_context
|
||||
man_end_context
|
||||
de_end_extraction
|
||||
uni_invoke_no_context <32-4655>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Secondary Label">
|
||||
mat_title_width <7>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
async_alert <yes_no, "alpha invoke primary main block omega load delete. delete">
|
||||
if_last_return_false_then <95>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <95>
|
||||
de_start_extraction <0>
|
||||
man_set_context_relative <1>
|
||||
de_set_data_type <index>
|
||||
de_get_data_value
|
||||
uni_use_last_atom_value <man_set_context_index>
|
||||
var_lookup_by_id <A, 1>
|
||||
man_close
|
||||
man_end_context
|
||||
man_update_display
|
||||
man_end_context
|
||||
fm_start
|
||||
fm_item_type <ini_file>
|
||||
fm_item_set <"VIEWERS.INI">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"VIEWERS">
|
||||
fm_item_type <ini_key>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_ini_write_data
|
||||
fm_item_type <ini_group>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set
|
||||
fm_ini_write_data
|
||||
de_end_extraction
|
||||
fm_end
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "Previous Theta">
|
||||
mat_title_width <7>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_preset_gid <32-4654>
|
||||
if_last_return_true_then <1, 2>
|
||||
man_make_focus
|
||||
man_update_display
|
||||
uni_sync_skip <1>
|
||||
uni_wait_on
|
||||
uni_invoke_no_context <32-4654>
|
||||
uni_sync_skip <2>
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_start_sibling <trigger, "New Form">
|
||||
mat_title_width <7>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
act_do_action <128>
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+226
@@ -0,0 +1,226 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Custom Dialog Omega">
|
||||
mat_object_id <32-4655>
|
||||
mat_orientation <vff>
|
||||
mat_position <center_center>
|
||||
mat_bool_modal <yes>
|
||||
var_number_save <A, 1>
|
||||
man_start_object <edit_view, "zone second east update dynamic active omega">
|
||||
mat_size <50, 1>
|
||||
mat_relative_tag <1>
|
||||
mat_vertical_spacing <5>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_start_sibling <ornament, "stop basic simple new panel secondary start refresh.">
|
||||
mat_size <40, 1>
|
||||
mat_vertical_spacing <0>
|
||||
mat_font_id <system>
|
||||
mat_font_size <9>
|
||||
man_start_sibling <ornament, "">
|
||||
mat_size <50, 1>
|
||||
mat_relative_tag <2>
|
||||
mat_vertical_spacing <5>
|
||||
mat_font_sis <arial, 10, italic>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <man_append_data>
|
||||
man_start_sibling <edit_view, "Complex Edge Edge">
|
||||
mat_size <50, 1>
|
||||
mat_relative_tag <3>
|
||||
mat_vertical_spacing <5>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hfc>
|
||||
man_start_object <edit_view, "Standard Gamma Zone">
|
||||
mat_size <42, 1>
|
||||
mat_relative_tag <4>
|
||||
mat_vertical_spacing <5>
|
||||
mat_bool_writeable <yes>
|
||||
mat_bool_hidden <yes>
|
||||
man_start_sibling <trigger, "Current Component">
|
||||
mat_relative_tag <6>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
fm_start
|
||||
fm_item_type <file_type_ext>
|
||||
fm_item_set <"exe">
|
||||
fm_item_type <file_type_desc>
|
||||
fm_item_set <"Applications (*.exe)">
|
||||
fm_register
|
||||
fm_item_get <file_type_id>
|
||||
var_number_set_from_atom <B>
|
||||
fm_add_file_type
|
||||
fm_item_type <filename>
|
||||
fm_item_set <"*.EXE">
|
||||
fm_dialog_get_file <"Custom Label Component">
|
||||
fm_item_get <error_code>
|
||||
if_last_return_false_then <1>
|
||||
man_set_context_relative <4>
|
||||
fm_item_get <filespec>
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_sync_skip <1>
|
||||
fm_item_type <file_type_id>
|
||||
var_number_get <B>
|
||||
uni_use_last_atom_value <fm_item_set>
|
||||
fm_unregister
|
||||
fm_end
|
||||
uni_end_stream
|
||||
>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_object
|
||||
man_start_sibling <sss_list, "">
|
||||
mat_orientation <hef>
|
||||
mat_relative_tag <5>
|
||||
man_start_object <trigger, "Custom Button Box">
|
||||
mat_vertical_spacing <5>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <4>
|
||||
mat_bool_hidden <yes>
|
||||
mat_validation <0>
|
||||
man_end_context
|
||||
man_set_context_relative <6>
|
||||
mat_bool_hidden <yes>
|
||||
man_end_context
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Simple Zone Alpha">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <4>
|
||||
mat_bool_hidden <no>
|
||||
mat_validation <128>
|
||||
man_end_context
|
||||
man_set_context_relative <6>
|
||||
mat_bool_hidden <no>
|
||||
man_end_context
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "OK">
|
||||
mat_title_width <7>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
de_validate <display_msg | terminate>
|
||||
var_lookup_by_id <A, 1>
|
||||
de_start_extraction <0>
|
||||
fm_start
|
||||
fm_item_type <ini_file>
|
||||
fm_item_set <"VIEWERS.INI">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"VIEWERS">
|
||||
fm_item_type <ini_key>
|
||||
man_set_context_relative <2>
|
||||
de_get_data_pointer
|
||||
var_string_set_from_atom <B>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
man_end_context
|
||||
fm_item_type <ini_data_type>
|
||||
fm_item_set <"\x00">
|
||||
man_set_context_relative <1>
|
||||
de_get_data_pointer
|
||||
var_string_set_from_atom <C>
|
||||
uni_use_last_atom_string <fm_ini_write_data>
|
||||
man_end_context
|
||||
fm_item_type <ini_group>
|
||||
var_string_get <B>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"Ext">
|
||||
man_set_context_relative <3>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <fm_ini_write_data>
|
||||
man_end_context
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"App">
|
||||
man_set_context_relative <5>
|
||||
de_get_data_value
|
||||
var_number_set_from_atom <B>
|
||||
man_end_context
|
||||
if_numb_eq_one_then <10, 20>
|
||||
fm_ini_write_data
|
||||
uni_sync_skip <10>
|
||||
man_set_context_relative <4>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <fm_ini_write_data>
|
||||
man_end_context
|
||||
uni_sync_skip <20>
|
||||
fm_end
|
||||
de_end_extraction
|
||||
man_close_update
|
||||
man_set_context_globalid <32-4653>
|
||||
man_set_context_relative <1>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <man_set_context_index>
|
||||
var_string_get <C>
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_end_context
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Third East">
|
||||
mat_title_width <7>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
fm_start
|
||||
fm_item_type <ini_data_type>
|
||||
fm_item_set <"\x00">
|
||||
fm_item_type <ini_file>
|
||||
fm_item_set <"VIEWERS.INI">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"VIEWERS">
|
||||
fm_item_type <ini_key>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
man_set_context_relative <1>
|
||||
fm_ini_read_data
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_end_context
|
||||
fm_item_type <ini_group>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"Ext">
|
||||
man_set_context_relative <3>
|
||||
fm_ini_read_data
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_end_context
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"App">
|
||||
man_set_context_relative <4>
|
||||
fm_ini_read_data
|
||||
var_string_set_from_atom <B>
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_end_context
|
||||
if_strb_neq_null_then <1>
|
||||
man_set_context_relative <5>
|
||||
mat_value <2>
|
||||
man_change_context_relative <4>
|
||||
mat_bool_hidden <no>
|
||||
man_change_context_relative <6>
|
||||
mat_bool_hidden <no>
|
||||
man_end_context
|
||||
uni_sync_skip <1>
|
||||
fm_end
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+42
@@ -0,0 +1,42 @@
|
||||
uni_start_stream <00x>
|
||||
man_use_default_title
|
||||
man_start_object <ind_group, "">
|
||||
mat_object_id <32-4657>
|
||||
mat_orientation <vcf>
|
||||
mat_position <center_center>
|
||||
man_start_object <edit_view, "Simple Left Edge">
|
||||
mat_size <40, 1, 72>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_start_sibling <edit_view, "Advanced Main Component">
|
||||
mat_size <40, 1>
|
||||
mat_relative_tag <2>
|
||||
mat_vertical_spacing <5>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_start_sibling <trigger, "OK">
|
||||
mat_title_width <7>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
de_validate <display_msg | terminate>
|
||||
morg_set_bookmark_close_form
|
||||
de_start_extraction <0>
|
||||
man_set_context_relative <2>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <morg_set_bookmark_url>
|
||||
man_change_context_relative <1>
|
||||
de_get_data_pointer
|
||||
uni_save_result
|
||||
man_end_context
|
||||
de_end_extraction
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <morg_modify_bookmark>
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+4
@@ -0,0 +1,4 @@
|
||||
uni_start_stream
|
||||
async_sign_on
|
||||
morg_finish_jump_bookmark
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+85
@@ -0,0 +1,85 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Second Panel Block">
|
||||
mat_orientation <vff>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <sms_list, "">
|
||||
mat_orientation <vff>
|
||||
man_start_object <trigger, "">
|
||||
mat_title <"Simple Unit Left">
|
||||
mat_relative_tag <1>
|
||||
mat_bool_default <yes>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcc>
|
||||
man_start_object <ornament, "">
|
||||
mat_font_sis <system, 9, normal>
|
||||
mat_title <"New East Center">
|
||||
mat_vertical_spacing <5>
|
||||
man_start_sibling <select_range, "">
|
||||
mat_relative_tag <2>
|
||||
mat_width <5>
|
||||
mat_minimum <1>
|
||||
mat_maximum <1000>
|
||||
mat_increment <1>
|
||||
mat_vertical_spacing <5>
|
||||
man_start_sibling <ornament, "Dynamic Bottom">
|
||||
mat_font_sis <system, 9, normal>
|
||||
mat_vertical_spacing <5>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "OK">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
de_start_extraction
|
||||
man_set_context_relative <1>
|
||||
idb_start_obj <"b">
|
||||
idb_atr_globalid <20-0-89>
|
||||
de_get_data_value
|
||||
uni_use_last_atom_value <idb_append_data>
|
||||
idb_end_obj
|
||||
man_end_context
|
||||
man_set_context_relative <2>
|
||||
idb_start_obj <"b">
|
||||
idb_atr_globalid <20-0-90>
|
||||
de_get_data_value
|
||||
uni_use_last_atom_value <idb_append_data>
|
||||
idb_end_obj
|
||||
man_end_context
|
||||
xfer_refresh_prefs
|
||||
man_close
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Main Side">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
async_alert <yes_no, "window thing receive receive third region standard sub. edge back">
|
||||
if_last_return_true_then <1>
|
||||
www_purge_cache
|
||||
uni_sync_skip <1>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Third East">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_set_context_relative <1>
|
||||
act_get_db_value <14x, 00x, 00x, 59x>
|
||||
uni_use_last_atom_value <mat_value>
|
||||
man_end_context
|
||||
man_set_context_relative <2>
|
||||
act_get_db_value <14x, 00x, 00x, 5ax>
|
||||
uni_use_last_atom_value <mat_value>
|
||||
man_end_context
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+441
@@ -0,0 +1,441 @@
|
||||
uni_start_stream <00x>
|
||||
sm_enter_paid
|
||||
man_start_object <ind_group, "Current Right">
|
||||
mat_object_id <32-4705>
|
||||
mat_style_id <32-4705>
|
||||
mat_orientation <vff>
|
||||
mat_bool_background_tile <yes>
|
||||
mat_art_id <1-0-3902>
|
||||
mat_style_id <32-4705>
|
||||
mat_form_icon <1-0-2634>
|
||||
act_set_criterion <200>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_can_go_back
|
||||
var_number_set_from_atom <A>
|
||||
man_end_context
|
||||
man_set_context_relative <10>
|
||||
if_numa_true_then <1, 2>
|
||||
mat_bool_disabled <no>
|
||||
uni_sync_skip <1>
|
||||
mat_bool_disabled <yes>
|
||||
uni_sync_skip <2>
|
||||
man_end_context
|
||||
man_set_context_relative <11>
|
||||
mat_bool_disabled <no>
|
||||
man_end_context
|
||||
man_set_context_relative <1>
|
||||
www_can_go_forward
|
||||
var_number_set_from_atom <A>
|
||||
man_end_context
|
||||
man_set_context_relative <12>
|
||||
if_numa_true_then <1, 2>
|
||||
mat_bool_disabled <no>
|
||||
uni_sync_skip <1>
|
||||
mat_bool_disabled <yes>
|
||||
uni_sync_skip <2>
|
||||
man_end_context
|
||||
man_is_rendered
|
||||
if_last_return_true_then <171>
|
||||
man_update_display
|
||||
uni_sync_skip <171>
|
||||
uni_end_stream
|
||||
>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
mat_position <center_center>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hlc>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vlf>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hlf>
|
||||
mat_vertical_spacing <0>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <10>
|
||||
mat_context_help <"Advanced Omega Module\x7fActive South Delta">
|
||||
mat_trigger_style <picture>
|
||||
mat_bool_precise <yes>
|
||||
mat_art_id <1-0-4718>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
mat_bool_disabled <yes>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <12>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_go_back
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <11>
|
||||
mat_context_help <"Primary Block Epsilon\x7fAdvanced Bottom Component">
|
||||
mat_trigger_style <picture>
|
||||
mat_precise_x <20>
|
||||
mat_art_id <1-0-4717>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
mat_bool_disabled <yes>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <12>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_reload
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <12>
|
||||
mat_context_help <"Second Bottom Panel\x7fSub East Main">
|
||||
mat_trigger_style <picture>
|
||||
mat_art_id <1-0-4716>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
mat_bool_disabled <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_go_forward
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <13>
|
||||
mat_context_help <"New Form View\x7fDynamic Element Omega">
|
||||
mat_trigger_style <picture>
|
||||
mat_art_id <1-0-26889>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_load_url <"Second Item Dialog">
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <22>
|
||||
mat_trigger_style <picture>
|
||||
mat_context_help <"Fourth Alpha Form\x7fPrimary Gamma Main">
|
||||
mat_art_id <1-0-6021>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
act_get_db_value <14x, 00x, 00x, d1x>
|
||||
if_last_return_true_then <1, 2>
|
||||
man_set_context_relative <1>
|
||||
www_invoke_options
|
||||
man_end_context
|
||||
uni_sync_skip <1>
|
||||
uni_invoke_no_context <32-4652>
|
||||
uni_sync_skip <2>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <16>
|
||||
mat_trigger_style <picture>
|
||||
mat_context_help <"Standard West Widget\x7fCurrent Widget Dialog">
|
||||
mat_art_id <1-0-4715>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
lm_table_use_table <20-0-71>
|
||||
async_get_screen_name
|
||||
uni_use_last_atom_string <lm_table_use_key>
|
||||
lm_table_get_item
|
||||
uni_save_result
|
||||
if_last_return_false_then <1>
|
||||
idb_set_context <20-0-78>
|
||||
idb_atr_offset <0>
|
||||
idb_get_string
|
||||
var_string_set_from_atom <A>
|
||||
idb_end_context
|
||||
var_string_get <A>
|
||||
uni_save_result
|
||||
uni_use_last_atom_string <lm_table_set_item>
|
||||
uni_sync_skip <1>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <www_load_url>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <17>
|
||||
mat_trigger_style <picture>
|
||||
mat_context_help <"Sub South Button">
|
||||
mat_art_id <1-0-4721>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_load_url <"Default Gamma Area">
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <18>
|
||||
mat_trigger_style <picture>
|
||||
mat_context_help <"Current Epsilon Object\x7fCustom Front Block">
|
||||
mat_art_id <1-0-4720>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_stop
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hlf>
|
||||
man_start_object <ornament, "">
|
||||
mat_size <1, 1>
|
||||
mat_horizontal_spacing <0>
|
||||
man_start_sibling <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_size <60, 1>
|
||||
mat_relative_tag <2>
|
||||
act_get_db_value <14x, 00x, 00x, 51x>
|
||||
if_last_return_false_then <100, 101>
|
||||
mat_bool_invisible <yes>
|
||||
uni_sync_skip <100>
|
||||
mat_bool_exportable <yes>
|
||||
mat_bool_importable <yes>
|
||||
mat_bool_expand_to_fit <yes>
|
||||
mat_bool_list_allow_entry <yes>
|
||||
man_make_focus
|
||||
mat_sort_order <reverse>
|
||||
mat_font_sis <arial, 8, normal>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <2>
|
||||
de_start_extraction <0>
|
||||
de_get_data_pointer
|
||||
uni_save_result
|
||||
de_end_extraction
|
||||
man_end_context
|
||||
uni_get_result
|
||||
if_last_return_true_then <5>
|
||||
man_set_context_relative <1>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <www_load_url>
|
||||
man_end_context
|
||||
uni_sync_skip <5>
|
||||
uni_end_stream
|
||||
>
|
||||
uni_sync_skip <101>
|
||||
mat_title_pos <left | top_or_left>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_resize_horizontal <no>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_start_sibling <ornament, "">
|
||||
mat_relative_tag <20>
|
||||
mat_art_id <1-0-5425>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_bool_disabled <yes>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hlf>
|
||||
man_start_object <ornament, "">
|
||||
mat_size <1, 1>
|
||||
mat_horizontal_spacing <0>
|
||||
man_start_sibling <view, "">
|
||||
mat_size <50, 19>
|
||||
mat_relative_tag <1>
|
||||
www_manage
|
||||
mat_width <610>
|
||||
mat_height <293>
|
||||
mat_bool_exportable <yes>
|
||||
mat_bool_importable <yes>
|
||||
act_set_criterion <134>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <20>
|
||||
mat_art_animation_rate <200>
|
||||
man_update_display
|
||||
man_end_context
|
||||
man_set_context_relative <18>
|
||||
mat_bool_disabled <no>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <135>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <20>
|
||||
mat_art_animation_rate <0>
|
||||
mat_art_frame <0>
|
||||
man_update_display
|
||||
man_end_context
|
||||
man_set_context_relative <18>
|
||||
mat_bool_disabled <yes>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <132>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_current_title
|
||||
uni_save_result
|
||||
man_end_context
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <128>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_current_url
|
||||
uni_save_result
|
||||
man_end_context
|
||||
man_set_context_relative <2>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <man_replace_data>
|
||||
man_end_context
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mat_url>
|
||||
man_update_display
|
||||
act_do_action <200>
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <129>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_current_link
|
||||
uni_save_result
|
||||
man_end_context
|
||||
man_set_context_relative <3>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <130>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_parts_complete
|
||||
uni_save_result
|
||||
man_end_context
|
||||
man_set_context_relative <4>
|
||||
uni_get_result
|
||||
if_last_return_true_then <1, 2>
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <mat_value>
|
||||
mat_bool_hidden <no>
|
||||
uni_sync_skip <1>
|
||||
mat_bool_hidden <yes>
|
||||
uni_sync_skip <2>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <136>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_current_url
|
||||
uni_save_result
|
||||
man_end_context
|
||||
man_set_context_relative <2>
|
||||
man_start_object <trigger, "">
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_end_object
|
||||
man_is_rendered
|
||||
if_last_return_true_then <177>
|
||||
man_update_display
|
||||
uni_sync_skip <177>
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <137>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
www_get_status_msg
|
||||
uni_save_result
|
||||
man_end_context
|
||||
man_set_context_relative <3>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
mat_bool_writeable <yes>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hlf>
|
||||
man_start_object <ornament, "">
|
||||
mat_size <1, 1>
|
||||
mat_horizontal_spacing <0>
|
||||
man_start_sibling <ornament, "">
|
||||
mat_size <63, 1>
|
||||
mat_relative_tag <3>
|
||||
mat_bool_precise <yes>
|
||||
mat_vertical_spacing <0>
|
||||
man_end_object
|
||||
man_start_object <range, "">
|
||||
mat_relative_tag <4>
|
||||
mat_bool_precise <yes>
|
||||
mat_precise_width <100>
|
||||
mat_precise_height <14>
|
||||
mat_frame_style <pop_in>
|
||||
mat_maximum <100>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
man_set_context_globalid <1>
|
||||
var_string_null <A>
|
||||
var_lookup_by_id <A, 310>
|
||||
var_string_null <B>
|
||||
var_string_save <B, 310>
|
||||
man_end_context
|
||||
if_stra_neq_null_then <1, 2>
|
||||
man_set_context_relative <1>
|
||||
var_string_get <A>
|
||||
uni_use_last_atom_string <www_load_url>
|
||||
man_end_context
|
||||
uni_sync_skip <1>
|
||||
man_set_context_relative <16>
|
||||
act_do_action <select>
|
||||
man_end_context
|
||||
uni_sync_skip <2>
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+44
@@ -0,0 +1,44 @@
|
||||
uni_start_stream
|
||||
if_offline_then <1>
|
||||
var_number_set <A, 0>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 192>
|
||||
if_numa_true_then <1>
|
||||
var_number_set <A, 0>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
man_end_context
|
||||
async_alert <yes_no, "Advanced Center\x7f\x7ftheta current first item special invoke dialog\x7f\x7fblock special refresh right send fourth update save. send advanced\x7fsecond area south region sigma old delta window. create\x7f\x7fCustom View">
|
||||
var_number_set_from_atom <A>
|
||||
var_number_set <B, 1>
|
||||
if_numa_neq_numb_then <1>
|
||||
var_number_set <A, 1>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
xfer_finish_later
|
||||
uni_wait_on
|
||||
man_get_first_window
|
||||
uni_save_result
|
||||
uni_start_loop
|
||||
uni_get_result
|
||||
if_last_return_true_then <1>
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
act_do_action <67108871>
|
||||
man_end_context
|
||||
uni_get_result
|
||||
uni_use_last_atom_value <man_update_display>
|
||||
man_get_next_window
|
||||
uni_save_result
|
||||
uni_end_loop
|
||||
uni_sync_skip <1>
|
||||
uni_invoke_no_context <32-481>
|
||||
uni_invoke_no_context <32-483>
|
||||
man_set_context_globalid <1>
|
||||
var_number_set <A, 1>
|
||||
var_number_save <A, 192>
|
||||
man_end_context
|
||||
var_number_set <A, 0>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+3
@@ -0,0 +1,3 @@
|
||||
uni_start_stream
|
||||
man_close_update <32-5831>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+38
@@ -0,0 +1,38 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Default Omega">
|
||||
mat_object_id <32-488>
|
||||
mat_orientation <vff>
|
||||
man_start_object <dss_list, "Secondary Left Top">
|
||||
mat_orientation <vff>
|
||||
mat_size <70>
|
||||
mat_relative_tag <200>
|
||||
mat_ruler <8, 50, 60>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "Custom Module">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
mt_load_tool
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Third Alpha">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
mt_bounce_tool
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Special Main">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
mt_kill_tool
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+20
@@ -0,0 +1,20 @@
|
||||
uni_start_stream <00x>
|
||||
man_use_default_title
|
||||
man_start_object <ind_group, "Standard Sub Gamma">
|
||||
mat_orientation <vcf>
|
||||
mat_position <cascade>
|
||||
mat_style_id <32-493>
|
||||
man_start_object <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_size <36, 12>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_list_icons <yes>
|
||||
man_start_sibling <trigger, "item">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
sm_do_list_action <1>
|
||||
>
|
||||
man_end_object
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+21
@@ -0,0 +1,21 @@
|
||||
uni_start_stream
|
||||
man_use_default_title
|
||||
man_set_context_globalid <1>
|
||||
man_start_object <ind_group, "">
|
||||
mat_form_icon <1-0-1290>
|
||||
var_number_set <A, 1>
|
||||
var_number_save <A, 101>
|
||||
mat_dirty_query <yes>
|
||||
mat_object_id <32-4941>
|
||||
mat_style_id <32-233>
|
||||
mat_orientation <vcf>
|
||||
man_start_object <edit_view, "">
|
||||
mat_size <64, 22, 32000>
|
||||
rich_manage
|
||||
mat_bool_writeable <yes>
|
||||
mat_log_object <no_log>
|
||||
mat_relative_tag <1>
|
||||
man_end_object
|
||||
man_update_end_object
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+136
@@ -0,0 +1,136 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Third West Item">
|
||||
mat_object_id <32-498>
|
||||
mat_orientation <vff>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hee>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <vef>
|
||||
man_start_object <dss_list, "">
|
||||
mat_orientation <vff>
|
||||
mat_height <11>
|
||||
mat_relative_tag <1>
|
||||
mat_sort_order <alphabetical>
|
||||
fm_start
|
||||
fm_item_type <ini_data_type>
|
||||
fm_item_set <"\x00">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"ID">
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"TITLE">
|
||||
fm_set_relative_path <"cen">
|
||||
fm_get_first_file <"Second Region">
|
||||
uni_save_result
|
||||
uni_start_loop
|
||||
uni_get_result
|
||||
if_last_return_true_then <1>
|
||||
man_start_object <trigger, "">
|
||||
uni_get_result
|
||||
var_string_set_from_atom <A>
|
||||
var_string_save <A, 10>
|
||||
fm_item_type <filename>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_item_get <filespec>
|
||||
fm_item_type <ini_file>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_ini_read_data
|
||||
uni_use_last_atom_string <mat_title>
|
||||
man_end_object
|
||||
fm_get_next_file
|
||||
uni_save_result
|
||||
uni_end_loop
|
||||
uni_sync_skip <1>
|
||||
fm_end
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <vee>
|
||||
man_start_object <trigger, "Previous Module">
|
||||
mat_title_width <17>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_single_step
|
||||
de_start_extraction <0>
|
||||
man_set_context_relative <1>
|
||||
de_set_data_type <var>
|
||||
de_set_variable_id <10>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <ccl_install_modem_driver>
|
||||
man_end_context
|
||||
de_end_extraction
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Active Top">
|
||||
mat_title_width <17>
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
uni_wait_on
|
||||
uni_invoke_no_context <32-476>
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_start_sibling <trigger, "First Frame Button">
|
||||
mat_title_width <17>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
uni_wait_on
|
||||
uni_invoke_no_context <32-477>
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_start_sibling <trigger, "Basic West">
|
||||
mat_title_width <17>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
uni_wait_on
|
||||
uni_invoke_no_context <32-492>
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_start_sibling <trigger, "Second Dialog">
|
||||
mat_title_width <17>
|
||||
mat_bool_disabled <yes>
|
||||
man_start_sibling <trigger, "Third East">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
idb_set_context <20-0-45>
|
||||
idb_atr_offset <0>
|
||||
idb_get_string
|
||||
uni_save_result
|
||||
man_set_context_relative <1>
|
||||
fm_start
|
||||
fm_item_type <ini_data_type>
|
||||
fm_item_set <"\x00">
|
||||
fm_item_type <ini_group>
|
||||
fm_item_set <"ID">
|
||||
fm_item_type <ini_key>
|
||||
fm_item_set <"TITLE">
|
||||
fm_set_relative_path <"cen">
|
||||
fm_item_type <filename>
|
||||
uni_get_result
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_item_get <filespec>
|
||||
fm_item_type <ini_file>
|
||||
uni_use_last_atom_string <fm_item_set>
|
||||
fm_ini_read_data
|
||||
uni_use_last_atom_string <man_get_index_by_title>
|
||||
uni_use_last_atom_value <mat_value>
|
||||
man_end_context
|
||||
idb_end_context
|
||||
man_update_display
|
||||
fm_end
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+5
@@ -0,0 +1,5 @@
|
||||
uni_start_stream
|
||||
idb_set_context <32-539>
|
||||
idb_atr_globalid <32-229>
|
||||
idb_end_context
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+30
@@ -0,0 +1,30 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Static Module">
|
||||
mat_orientation <vff>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <ornament, "">
|
||||
mat_size <35, 1, 30>
|
||||
mat_relative_tag <1>
|
||||
man_start_sibling <ornament, "">
|
||||
mat_size <35, 1, 30>
|
||||
man_append_data <"Advanced Form Gadget">
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hef>
|
||||
man_start_object <trigger, "Yes">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
sm_p_send_token_arg <"mV", 1>
|
||||
>
|
||||
man_start_sibling <trigger, "No">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
sm_p_send_token_arg <"mV", 0>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+47
@@ -0,0 +1,47 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "Simple Back Element">
|
||||
mat_object_id <32-566>
|
||||
mat_orientation <vff>
|
||||
mat_bool_modal <yes>
|
||||
man_start_object <ornament, "">
|
||||
mat_size <30, 3>
|
||||
man_append_data <"Current Corner Screen\x7fBasic Top Button\x7fBasic North Zone\x7f">
|
||||
man_start_sibling <edit_view, "">
|
||||
mat_size <30, 1>
|
||||
mat_relative_tag <1>
|
||||
mat_bool_vertical_scroll <no>
|
||||
mat_bool_resize_horizontal <no>
|
||||
mat_bool_writeable <yes>
|
||||
mat_validation <128>
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hff>
|
||||
man_start_object <trigger, "OK">
|
||||
mat_bool_default <yes>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_relative <1>
|
||||
de_start_extraction <0>
|
||||
de_validate <display_msg | terminate>
|
||||
de_get_data_pointer
|
||||
uni_use_last_atom_string <ccl_new_location>
|
||||
de_end_extraction
|
||||
man_end_context
|
||||
man_close_update
|
||||
uni_invoke_local <32-570>
|
||||
ccl_update_locality
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Third East">
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
uni_end_stream <00x>
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+3
@@ -0,0 +1,3 @@
|
||||
uni_start_stream
|
||||
async_play_sound_dammit <"Previous Region Side">
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+28
@@ -0,0 +1,28 @@
|
||||
uni_start_stream
|
||||
man_set_context_globalid <32-666>
|
||||
man_set_context_relative <16>
|
||||
man_replace_data <"Simple Form">
|
||||
man_set_context_relative <1>
|
||||
mat_value <1>
|
||||
man_set_context_relative <3>
|
||||
man_replace_data
|
||||
man_set_context_relative <4>
|
||||
mat_value <3>
|
||||
man_set_context_relative <5>
|
||||
mat_value <1>
|
||||
man_set_context_relative <6>
|
||||
man_replace_data
|
||||
man_set_context_relative <7>
|
||||
mat_value <3>
|
||||
man_set_context_relative <8>
|
||||
mat_value <1>
|
||||
man_set_context_relative <11>
|
||||
mat_value <0>
|
||||
man_set_context_relative <12>
|
||||
mat_bool_disabled <yes>
|
||||
man_set_context_relative <13>
|
||||
mat_value <0>
|
||||
man_set_context_relative <14>
|
||||
mat_bool_disabled <yes>
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+17
@@ -0,0 +1,17 @@
|
||||
uni_start_stream
|
||||
man_insert_object_after <335544371>
|
||||
mat_object_type <dss_list, "">
|
||||
mat_object_id <32-5831>
|
||||
mat_title <"Custom Sub Bottom">
|
||||
man_start_object <trigger, "Previous View">
|
||||
mat_relative_tag <1>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream_wait_on
|
||||
sm_enter_paid
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+6
@@ -0,0 +1,6 @@
|
||||
uni_start_stream
|
||||
man_set_context_globalid <32-5831>
|
||||
man_close_children
|
||||
man_end_context
|
||||
man_close_update <32-5831>
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+175
@@ -0,0 +1,175 @@
|
||||
uni_start_stream <00x>
|
||||
man_start_object <ind_group, "First South">
|
||||
mat_style_id <32-6024>
|
||||
mat_orientation <vff>
|
||||
mat_precise_width <455>
|
||||
mat_precise_height <280>
|
||||
mat_style_id <32-5472>
|
||||
act_set_criterion <7>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
act_set_criterion <8>
|
||||
act_replace_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_end_stream
|
||||
>
|
||||
mat_art_id <1-0-21743>
|
||||
mat_position <center_center>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_precise <yes>
|
||||
mat_bool_background_tile <yes>
|
||||
man_start_object <ornament, "">
|
||||
man_force_old_style_dod <yes>
|
||||
mat_art_id <1-0-35535>
|
||||
mat_bool_disabled <yes>
|
||||
mat_bool_invert <yes>
|
||||
man_start_sibling <ornament, "">
|
||||
mat_precise_x <110>
|
||||
mat_precise_y <10>
|
||||
mat_art_id <1-0-29737>
|
||||
mat_bool_disabled <yes>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <6>
|
||||
mat_bool_invisible <yes>
|
||||
man_start_sibling <view, "">
|
||||
rich_manage
|
||||
rich_set_static
|
||||
mat_precise_x <200>
|
||||
mat_precise_y <10>
|
||||
mat_precise_width <230>
|
||||
mat_precise_height <72>
|
||||
mat_relative_tag <3>
|
||||
rich_set_static
|
||||
mat_font_id <arial>
|
||||
mat_font_size <12>
|
||||
mat_font_style <bold>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_precise_x <120>
|
||||
mat_precise_y <90>
|
||||
mat_relative_tag <4>
|
||||
mat_trigger_style <rectangle>
|
||||
mat_art_id <1-0-1307>
|
||||
mat_bool_resize_horizontal <yes>
|
||||
mat_bool_gradual_shadow <yes>
|
||||
man_start_sibling <view, "">
|
||||
rich_manage
|
||||
mat_precise_x <200>
|
||||
mat_precise_y <90>
|
||||
mat_precise_width <210>
|
||||
mat_precise_height <60>
|
||||
mat_relative_tag <1>
|
||||
rich_set_static
|
||||
mat_bool_vertical_scroll <no>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_resize_horizontal <no>
|
||||
mat_bool_exportable <no>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <9>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_precise_x <120>
|
||||
mat_precise_y <175>
|
||||
mat_relative_tag <5>
|
||||
mat_trigger_style <rectangle>
|
||||
mat_art_id <1-0-1307>
|
||||
mat_bool_resize_horizontal <yes>
|
||||
mat_bool_gradual_shadow <yes>
|
||||
man_start_sibling <view, "">
|
||||
rich_manage
|
||||
mat_precise_x <200>
|
||||
mat_precise_y <175>
|
||||
mat_precise_width <210>
|
||||
mat_precise_height <60>
|
||||
mat_relative_tag <2>
|
||||
rich_set_static
|
||||
mat_bool_vertical_scroll <no>
|
||||
mat_bool_resize_vertical <no>
|
||||
mat_bool_resize_horizontal <no>
|
||||
mat_bool_exportable <no>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <9>
|
||||
man_start_sibling <trigger, "Old Sub">
|
||||
mat_title_width <8>
|
||||
mat_precise_x <120>
|
||||
mat_precise_y <245>
|
||||
mat_color_face <100, 100, 178>
|
||||
mat_color_text <240, 240, 240>
|
||||
mat_color_top_edge <150, 200, 255>
|
||||
mat_color_bottom_edge <1, 1, 1>
|
||||
mat_trigger_style <place>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <10>
|
||||
mat_font_style <bold>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream <00x>
|
||||
man_close_update
|
||||
man_preset_gid <32-5483>
|
||||
if_last_return_true_then <1, 2>
|
||||
man_make_focus
|
||||
man_update_display
|
||||
uni_sync_skip <1>
|
||||
uni_invoke_no_context <32-5483>
|
||||
uni_sync_skip <2>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "Second Form">
|
||||
mat_title_width <8>
|
||||
mat_precise_x <230>
|
||||
mat_precise_y <245>
|
||||
mat_relative_tag <7>
|
||||
mat_color_face <100, 100, 178>
|
||||
mat_color_text <240, 240, 240>
|
||||
mat_color_top_edge <150, 200, 255>
|
||||
mat_color_bottom_edge <1, 1, 1>
|
||||
mat_trigger_style <place>
|
||||
mat_bool_default <yes>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <10>
|
||||
mat_font_style <bold>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_wait_on
|
||||
async_exit_aux <00x>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "bloc">
|
||||
mat_title_width <8>
|
||||
mat_precise_x <340>
|
||||
mat_precise_y <245>
|
||||
mat_color_face <100, 100, 178>
|
||||
mat_color_text <240, 240, 240>
|
||||
mat_color_top_edge <150, 200, 255>
|
||||
mat_color_bottom_edge <1, 1, 1>
|
||||
mat_trigger_style <place>
|
||||
mat_font_id <arial>
|
||||
mat_font_size <10>
|
||||
mat_font_style <bold>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_close_update
|
||||
uni_wait_on
|
||||
async_exit_aux <01x>
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <ornament, "">
|
||||
mat_precise_x <120>
|
||||
mat_precise_y <163>
|
||||
mat_precise_width <310>
|
||||
mat_precise_height <1>
|
||||
mat_color_face <1, 1, 1>
|
||||
mat_color_text <1, 1, 1>
|
||||
man_append_data <"\x7f">
|
||||
man_end_object
|
||||
man_place_cursor <7>
|
||||
async_playsound <"Complex Delta">
|
||||
async_playsound <"..\\Main Omega\\Special View\\Active Bottom">
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+9
@@ -0,0 +1,9 @@
|
||||
uni_start_stream
|
||||
de_start_extraction
|
||||
buf_set_token <"eT">
|
||||
man_set_context_relative <12>
|
||||
de_get_data
|
||||
man_end_context
|
||||
de_end_extraction
|
||||
buf_close_buffer
|
||||
uni_end_stream
|
||||
BIN
Binary file not shown.
+264
@@ -0,0 +1,264 @@
|
||||
uni_start_stream <00x>
|
||||
man_set_response_id <2622599>
|
||||
var_number_set <A, 0>
|
||||
var_number_save <A, 100>
|
||||
man_set_context_globalid <1>
|
||||
man_start_object <ind_group, "">
|
||||
mat_object_id <40-1159>
|
||||
mat_orientation <vcc>
|
||||
mat_position <center_center>
|
||||
mat_bool_invisible <yes>
|
||||
mat_position <top_left>
|
||||
mat_bool_palette <yes>
|
||||
var_number_set <A, 0>
|
||||
var_number_save <A, 64>
|
||||
man_start_object <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <1>
|
||||
mat_art_id <1-0-1634>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
uni_wait_on
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
man_set_context_relative <1>
|
||||
var_number_set <B, 270>
|
||||
image_get_attr <16x, 01x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_gte_numb_then <1, 2>
|
||||
var_number_set <A, 0>
|
||||
uni_sync_skip <1>
|
||||
var_number_add <90>
|
||||
uni_sync_skip <2>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <image_attr_rotate>
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <2>
|
||||
mat_art_id <1-0-1633>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
async_alert <yes_no, "first invoke region old center update bottom create. refresh unit current previous">
|
||||
async_get_alert_result
|
||||
var_number_set_from_atom <A>
|
||||
var_number_set <B, 1>
|
||||
if_numa_neq_numb_then <1>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
image_revert
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <3>
|
||||
mat_art_id <1-0-1629>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
image_flip_horizontal
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <4>
|
||||
mat_art_id <1-0-1630>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
image_flip_vertical
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <5>
|
||||
mat_art_id <1-0-1625>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
var_number_set <B, 128>
|
||||
image_get_attr <16x, 06x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_gte_numb_then <1, 2>
|
||||
var_number_set <A, 128>
|
||||
uni_sync_skip <1>
|
||||
var_number_add <5>
|
||||
uni_sync_skip <2>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <image_attr_brightness>
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <6>
|
||||
mat_art_id <1-0-1628>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
var_number_set <B, 2147483647>
|
||||
image_get_attr <16x, 06x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_lte_numb_then <1, 2>
|
||||
var_number_set <A, 2147483647>
|
||||
uni_sync_skip <1>
|
||||
var_number_sub <5>
|
||||
uni_sync_skip <2>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <image_attr_brightness>
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <7>
|
||||
mat_art_id <1-0-1626>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
var_number_set <B, 128>
|
||||
image_get_attr <16x, 07x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_gte_numb_then <1, 2>
|
||||
var_number_set <A, 128>
|
||||
uni_sync_skip <1>
|
||||
var_number_add <5>
|
||||
uni_sync_skip <2>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <image_attr_contrast>
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <8>
|
||||
mat_art_id <1-0-1627>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
var_number_set <B, 2147483647>
|
||||
image_get_attr <16x, 07x>
|
||||
var_number_set_from_atom <A>
|
||||
if_numa_lte_numb_then <1, 2>
|
||||
var_number_set <A, 2147483647>
|
||||
uni_sync_skip <1>
|
||||
var_number_sub <5>
|
||||
uni_sync_skip <2>
|
||||
var_number_get <A>
|
||||
uni_use_last_atom_value <image_attr_contrast>
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_sibling <org_group, "">
|
||||
mat_orientation <hcf>
|
||||
man_start_object <trigger, "">
|
||||
mat_relative_tag <9>
|
||||
mat_art_id <1-0-1631>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
async_alert <yes_no, "Current East Side">
|
||||
async_get_alert_result
|
||||
var_number_set_from_atom <A>
|
||||
var_number_set <B, 1>
|
||||
if_numa_neq_numb_then <1>
|
||||
uni_abort_stream
|
||||
uni_sync_skip <1>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
image_make_gray_scale
|
||||
uni_wait_off
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_start_sibling <trigger, "">
|
||||
mat_relative_tag <10>
|
||||
mat_art_id <1-0-1632>
|
||||
mat_horizontal_spacing <0>
|
||||
mat_vertical_spacing <0>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
uni_wait_on
|
||||
man_set_context_relative <1>
|
||||
image_invert
|
||||
man_end_context
|
||||
uni_wait_off_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_update_display
|
||||
uni_wait_off
|
||||
uni_end_stream <00x>
|
||||
BIN
Binary file not shown.
+81
@@ -0,0 +1,81 @@
|
||||
uni_start_stream
|
||||
man_preset_gid <0>
|
||||
man_set_context_globalid <31>
|
||||
man_insert_object_before
|
||||
mat_object_type <dss_list, "">
|
||||
mat_object_id <40-1231>
|
||||
mat_title <"Default Bottom">
|
||||
mat_shortcut_key <"X">
|
||||
man_start_object <trigger, "">
|
||||
mat_title <"Previous Main">
|
||||
mat_shortcut_key <"S">
|
||||
mat_relative_tag <1>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <40-1159>
|
||||
man_get_attribute <mat_bool_invisible>
|
||||
if_last_return_true_then <1, 2>
|
||||
var_number_set <A, 1>
|
||||
var_number_save <A, 64>
|
||||
mat_bool_invisible <no>
|
||||
man_update_display
|
||||
man_end_context
|
||||
man_set_context_globalid <40-1231>
|
||||
man_set_context_relative <1>
|
||||
mat_title <"Third Sigma">
|
||||
mat_shortcut_key <"H">
|
||||
uni_sync_skip <1>
|
||||
var_number_set <A, 0>
|
||||
var_number_save <A, 64>
|
||||
mat_bool_invisible <yes>
|
||||
man_update_display
|
||||
man_end_context
|
||||
man_set_context_globalid <40-1231>
|
||||
man_set_context_relative <1>
|
||||
mat_title <"Previous Main">
|
||||
mat_shortcut_key <"S">
|
||||
uni_sync_skip <2>
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_start_object <trigger, "">
|
||||
mat_title <"Dynamic Dialog Edge">
|
||||
mat_shortcut_key <"F">
|
||||
mat_relative_tag <2>
|
||||
act_replace_select_action
|
||||
<
|
||||
uni_start_stream
|
||||
man_set_context_globalid <1>
|
||||
var_lookup_by_id <A, 100>
|
||||
uni_use_last_atom_value <man_set_context_globalid>
|
||||
man_set_context_relative <1>
|
||||
image_get_attr <16x, 1ex>
|
||||
if_last_return_false_then <3, 4>
|
||||
image_attr_fit_to_view <yes>
|
||||
man_end_context
|
||||
man_end_context
|
||||
man_set_context_globalid <40-1231>
|
||||
man_set_context_relative <2>
|
||||
mat_title <"Advanced Beta Right">
|
||||
mat_shortcut_key <"O">
|
||||
uni_sync_skip <3>
|
||||
image_attr_fit_to_view <no>
|
||||
man_end_context
|
||||
man_end_context
|
||||
man_set_context_globalid <40-1231>
|
||||
man_set_context_relative <2>
|
||||
mat_title <"Dynamic Dialog Edge">
|
||||
mat_shortcut_key <"F">
|
||||
uni_sync_skip <4>
|
||||
man_end_context
|
||||
man_update_display
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
>
|
||||
man_end_object
|
||||
man_end_object
|
||||
man_end_context
|
||||
uni_end_stream
|
||||
Loaded 100 of 346 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user