MegaAntiCheat / client-backend

GNU General Public License v3.0
117 stars 24 forks source link

Live demo uploads #124

Closed Bash-09 closed 5 months ago

Bash-09 commented 5 months ago

The masterbase module has a few convenience functions and structus for managing connections with the masterbase. Most of the meat happens in demo.rs where the DemoManager has been reworked to run in the event loop as a handler. From there it waits for DemoBytes messages from the DemoWatcher source, and when it receives these messages it appends them to the current demo being watched and parses them out, and also handles connections with the masterbase.

In the settings, there is now the masterbase_host field which can specify an address or port to find the masterbase at (e.g. masterbase.chs.gg or whatever it's going to be, or 127.0.0.1:8001 for local testing). Connections to the masterbase will enforce https unless the --masterbase-http flag is given when the app is launched.

There's also a couple other flags that can be given to the app at startup:

Perhaps a number of these could be persistent settings instead, but I didn't think too hard about it. Having them available as launch args is good enough for now.

Bash-09 commented 5 months ago

TODO: