Commit Graph
37 Commits
Author SHA1 Message Date
Tau b278c6bf08 aimedb: Refactor codec 2019-11-06 17:28:29 -05:00
Tau bc8185b26c aimedb/encoder.ts: Drop options param 2019-11-06 17:28:29 -05:00
Tau cbc1e29ed7 aimedb/decoder.ts: Drop options param 2019-11-06 17:28:29 -05:00
Tau 602335941c aimedb/cmd.ts: Split into decoder, encoder 2019-11-06 17:28:29 -05:00
Tau b5724b2ca0 chunithm.ts: Clean up response compression 2019-11-06 17:28:29 -05:00
Tau 2b40d56600 billing.ts: Clean up middleware 2019-11-06 17:28:29 -05:00
Tau eafff51ed4 startup.ts: Make better use of Express middleware 2019-11-06 17:28:29 -05:00
Tau 2f1c9dd476 Switch to TypeScript
This just makes the minimum changes necessary to "compile".
2019-11-06 17:28:29 -05:00
Tau 47dc580645 index.js: Print startup OK message 2019-11-06 17:28:29 -05:00
Tau 1337fc21f3 Apply Prettier 2019-11-06 17:28:29 -05:00
Tau 95c778f254 startup: Add port map based on game type
Ugly mechanism but whatever. Send different games to different
ports so that we can set up independent Express instances tailored
to each game's weird HTTP quirks.
2019-11-06 17:28:29 -05:00
Tau 991e09dd3b Rename Chunithm title server module
Since we plan to support more than one game there will of course
be more than one "title server".
2019-11-06 17:28:29 -05:00
Tau 4b7cf4f281 startup.js: Flesh out response a bit
amdaemon expects a bunch of stuff to be present here before it
will talk to AimeDB, whereas for Chunithm and Diva we got away with
leaving it mostly blank.
2019-11-06 17:28:29 -05:00
Tau 285167b255 Implement aimedb log message 2019-11-06 17:28:29 -05:00
Tau 80897a49b7 Implement AimeDB registration cmd 2019-11-06 17:28:29 -05:00
Tau 2e8d6997ee Add cosmetic line break 2019-11-06 17:28:29 -05:00
Tau 246f07f69a Implement initial Aime lookups 2019-11-06 17:28:29 -05:00
Tau be329dd9ff Fixups 2019-11-06 17:28:29 -05:00
Tau ed6a4675af Eliminate Framer 2019-11-06 17:28:29 -05:00
Tau 21b90ee323 Add lookup cmd decoder 2019-11-06 17:28:29 -05:00
Tau b678c0c551 Add Aimedb command tests 2019-11-06 17:28:29 -05:00
Tau b7da410b44 Aimedb: Adjust deframe/decode responsibility split 2019-11-06 17:28:29 -05:00
Tau 377a795f9a Formatting 2019-11-06 17:28:29 -05:00
Tau a44c5c00a7 Split up aimedb.js 2019-11-06 17:28:29 -05:00
Tau de011c2358 Factorize aimedb connection setup 2019-11-06 17:28:29 -05:00
Tau 6a8e00cc85 Add encoder layer to aimedb 2019-11-06 17:28:29 -05:00
Tau 62a66d2722 Skeletize more Chunithm API, got Network OK 2019-11-06 17:28:29 -05:00
Tau 11222a6858 Command and reformat GetGameMessageApi list 2019-11-06 17:28:29 -05:00
Tau 325043eb53 Deal with mandatory deflate on Chuni API 2019-11-06 17:28:29 -05:00
Tau 7065388c23 Call resp.json to send Chuni responses
Dunno if this is the canonical way to do things under Express?
2019-11-06 17:28:29 -05:00
Tau 4f49309c60 Trim unused imports 2019-11-06 17:28:29 -05:00
Tau 3289a9d690 Refactor initial Chunithm API 2019-11-06 17:28:29 -05:00
Tau b50f6dc5e6 Refactor the not-yet-working AimeDB impl 2019-11-06 17:28:29 -05:00
Ash 92e002cbfc Index: Add support for decrypting and sending back Aime traffic 2019-11-06 17:28:29 -05:00
Ash 0addd9d045 Add support for the title server and an Aime tcp listener 2019-11-06 17:28:29 -05:00
Ash f1332b9d8e Add bare bones title server 2019-11-06 17:28:29 -05:00
Tau b4e1519ab9 Add initial code drop 2019-11-06 17:28:24 -05:00