Commit Graph

166 Commits

Author SHA1 Message Date
Martin Michelsen 06fd71f7a6 use std::strings in places of c-strings in most places 2022-04-03 23:31:24 -07:00
Martin Michelsen 1d70933c17 define switch subcommand structure 2022-04-03 17:54:46 -07:00
Martin Michelsen fe9eceed5c bring subcommand abstraction in line with main command abstraction 2022-04-03 11:00:14 -07:00
Martin Michelsen 9c33c2de46 abstract command handlers away from proxy server 2022-04-03 10:59:30 -07:00
Martin Michelsen 522dac9a03 hide remote guild card number in licensed proxy sessions 2022-04-02 18:04:37 -07:00
Martin Michelsen d3ff50918f add safety for erroneous AC commands from clients 2022-04-02 15:14:21 -07:00
Martin Michelsen 091f3d4da4 improve proxy command documentation 2022-04-02 14:38:22 -07:00
Martin Michelsen 825437b145 document switch assist 2022-04-02 14:29:47 -07:00
Martin Michelsen d1cd27b6aa move fallthrough label to a place where gcc can understand it 2022-04-02 14:23:26 -07:00
Martin Michelsen 5afe3fb8d2 implement switch assist on proxy server 2022-04-02 10:47:05 -07:00
Martin Michelsen 76fd9c22bf get PSO PC login sequence working 2022-04-02 10:47:05 -07:00
Martin Michelsen 46add5fb74 fix PSO PC encryption 2022-04-02 10:47:01 -07:00
Martin Michelsen 3f5f2fc61d support multiple versions on proxy server 2022-04-02 10:47:01 -07:00
Martin Michelsen 37b8f1cffa move flags enums into the structs they're scoped to 2022-04-01 21:21:46 -07:00
Martin Michelsen aa1a2e852b fix uneven command size on ep3 card list update 2022-04-01 11:27:13 -07:00
Martin Michelsen 4cff7105fd fix uninitialized memory in ep3 game join 2022-04-01 11:26:47 -07:00
Martin Michelsen dfa087b606 write more comments in command structs header 2022-04-01 10:59:12 -07:00
Martin Michelsen 4f67c70239 clear client config by default in 9E constructor 2022-04-01 10:41:29 -07:00
Martin Michelsen b7cf7df4ef remove another memset 2022-04-01 10:40:34 -07:00
Martin Michelsen 583925045e clean up memory handling for client configs 2022-04-01 10:39:04 -07:00
Martin Michelsen 07a6e40b18 remove some now-unneeded memcpys 2022-04-01 10:24:31 -07:00
Martin Michelsen e8823819a7 remove some now-unneeded memsets 2022-04-01 10:19:05 -07:00
Martin Michelsen 3370b5fad3 add explicit operator!= for parray/ptext 2022-04-01 10:16:07 -07:00
Martin Michelsen c04ed9b6ce use ptext base copy constructor instead of operator= 2022-04-01 10:12:20 -07:00
Martin Michelsen 345820145e implement switch assist 2022-04-01 10:08:06 -07:00
Martin Michelsen edd9f4ea8f add proxy commands to override lobby params 2022-03-31 23:33:43 -07:00
Martin Michelsen 8a9e1a2049 use safe packed string types 2022-03-31 23:23:02 -07:00
Martin Michelsen 832135a505 always null-terminate limited-length strings 2022-03-31 10:04:37 -07:00
Martin Michelsen f39dd5a0af make size non-optional in add_color 2022-03-31 09:55:25 -07:00
Martin Michelsen 7dce8b6c2c centralize command formats; fix a few range bugs 2022-03-31 01:03:13 -07:00
Martin Michelsen db099ed2dd make proxy change ship behavior cleaner 2022-03-30 11:34:01 -07:00
Martin Michelsen 419b24e089 mention proxy ports in readme 2022-03-30 10:58:43 -07:00
Martin Michelsen a26013c571 expand readme section about proxy 2022-03-30 00:52:50 -07:00
Martin Michelsen d9a554beb3 add chat filter proxy option 2022-03-30 00:51:30 -07:00
Martin Michelsen 39f8a33588 add option to set nonzero client IDs by default 2022-03-30 00:51:08 -07:00
Martin Michelsen bcd69bab89 add option for suppressing commands 2022-03-29 23:46:17 -07:00
Martin Michelsen 5848beb6c2 add set-save-files 2022-03-29 23:37:56 -07:00
Martin Michelsen 2e839fe70a allow returning to newserv from proxy server 2022-03-29 23:25:16 -07:00
Martin Michelsen 03dcc016d8 add session timeout on proxy server 2022-03-29 23:22:45 -07:00
Martin Michelsen f3a3e18455 add some more game subcommands 2022-03-29 17:45:51 -07:00
Martin Michelsen 2e9e65f028 remove packed attr on shipgate player struct 2022-03-29 00:16:09 -07:00
Martin Michelsen 5c388c4052 make all file/network-related structs packed 2022-03-29 00:12:16 -07:00
Martin Michelsen b61a9bcdcb add warp command in proxy 2022-03-28 22:30:13 -07:00
Martin Michelsen 04aef91c16 make add_color_inplace safer 2022-03-28 22:30:04 -07:00
Martin Michelsen 97db8da273 keep track of lobby player slots on proxy server 2022-03-28 22:29:20 -07:00
Martin Michelsen 162b0327b9 add some safety for accidental newserv chat commands on proxy server 2022-03-28 22:28:05 -07:00
Martin Michelsen 5b47414a30 clean up some ip stack warnings 2022-03-28 22:27:02 -07:00
Martin Michelsen 5c6a420a61 move config to config.example.json 2022-03-28 19:56:22 -07:00
Martin Michelsen 4001968c84 use memcpy instead of strncpy where appropriate 2022-03-28 18:41:53 -07:00
Martin Michelsen 1cfd12699b also ignore -Wstringop-truncation 2022-03-28 18:38:24 -07:00