Commit Graph

222 Commits

Author SHA1 Message Date
Jordan Cristiano
cfc6498c25 Fixed not copying trailing bits from dem_stringtables 2015-06-29 23:31:26 -04:00
Jordan Cristiano
65089f3585 Fixed missing bitfile header 2015-06-28 17:32:34 -04:00
Jordan Cristiano
cfba42038d Fixed typo in bitbuf error handler name 2015-06-27 21:31:11 -04:00
Jordan Cristiano
1d3656b24b Implemented JsonWriter io class 2015-06-26 01:11:36 -04:00
Jordan Cristiano
45da2a9b2d Made JsonWriterFile flush on destruct 2015-06-26 01:10:46 -04:00
Jordan Cristiano
121dd61e9a Implemented demmessage json writer funcs 2015-06-26 01:06:29 -04:00
Jordan Cristiano
9696646576 Added demowriter check for num bits written being a multiple of 8 2015-06-25 09:02:08 -04:00
Jordan Cristiano
b0e5506384 Added bit size calculation for svc_gameeventlist data 2015-06-25 00:01:33 -04:00
Jordan Cristiano
aecc11163f Added error check for if the input and output files are the same 2015-06-25 00:00:30 -04:00
Jordan Cristiano
fea8bf485c Implemented json write funcs for netmessages 2015-06-24 23:59:39 -04:00
Jordan Cristiano
65a03fdf79 Added json file writing stream class based on rapidjson 2015-06-21 03:25:45 -04:00
Jordan Cristiano
5618e55129 Initialize at declaration instead of after 2015-06-21 03:10:53 -04:00
Jordan Cristiano
8b73c4041b Added calculation for encoded output size based on input size. Calculated size is never more than a byte larger than the actual size. 2015-06-21 03:10:17 -04:00
Jordan Cristiano
3acc56055c Made base64_encode_block use a local variable for stepcount which is saved back to the struct before return 2015-06-21 02:10:51 -04:00
Jordan Cristiano
b10aa30f9b Reordered base64_encodedstate members by size, reordered assignments to state struct by member order 2015-06-21 01:29:00 -04:00
Jordan Cristiano
a4220df30c Removed base64_encode_value from encode api, as it requires sanitized inputs (6 bit values) and is error prone for users 2015-06-21 01:24:42 -04:00
Jordan Cristiano
9adb42e579 Added encode flag to control whether the encoded string ends in a newline after padding or not 2015-06-21 01:21:20 -04:00
Jordan Cristiano
e7e498efd9 Removed encode/decode helper structs 2015-06-19 20:47:35 -04:00
Jordan Cristiano
94d1c32319 Added libb64-1.2.1 for base64 encoding/decoding 2015-06-19 19:34:53 -04:00
Jordan Cristiano
60888b0c97 Added verification for json output 2015-06-19 14:15:23 -04:00
Jordan Cristiano
d1921abc9f Fixed json_checker build for c++ 2015-06-19 14:12:51 -04:00
Jordan Cristiano
b763712020 Added JSON_checker source 2015-06-19 14:11:18 -04:00
Jordan Cristiano
f4cd7f96e2 Made CommandPacket const reference in writers 2015-06-18 20:38:17 -04:00
Jordan Cristiano
8be05db10d Removed variable assignment as the value to set is unknown and will not be read in this case 2015-06-18 20:26:23 -04:00
Jordan Cristiano
778e20803c Changed NetHandlers bit read/write types to typedefs 2015-06-18 20:23:26 -04:00
Jordan Cristiano
9ad7c54510 Added guards around DemHandlers functions 2015-06-18 20:19:35 -04:00
Jordan Cristiano
b67f448d18 Changed DemHandlers file read/write types to typedefs 2015-06-18 20:18:55 -04:00
Jordan Cristiano
0d7c67aef8 Added guards around NetHandlers functions 2015-06-18 20:09:06 -04:00
Jordan Cristiano
c6fb1e6ff2 Replaced void* parameter with actual type 2015-06-18 16:16:05 -04:00
Jordan Cristiano
1f74901943 Destruct writer before closing files so writer can flush buffers 2015-06-18 16:11:49 -04:00
Jordan Cristiano
4bf5cea15b Made some bitbuf getters const 2015-06-17 02:01:43 -04:00
Jordan Cristiano
df008f5a73 Replaced bitbuf global error handler with per class error recovery handler 2015-06-15 22:29:54 -04:00
Jordan Cristiano
522f5a11ee Added rapidjson-1.0.2 json reader/writer 2015-06-14 22:59:30 -04:00
Jordan Cristiano
b2f3469b16 Restructured external includes 2015-06-14 22:58:23 -04:00
Jordan Cristiano
7cc79178e7 Fixed not writing delta byte in svc_packetentities 2015-06-14 20:51:36 -04:00
Jordan Cristiano
91e63d3f39 Copy trailing bits to output after each packet for file hash matching 2015-06-14 20:50:09 -04:00
Jordan Cristiano
361119f19f Flush the conlog output fp when finished writing 2015-06-14 20:48:57 -04:00
Jordan Cristiano
a02b034115 premake script cleanup 2015-06-14 17:27:36 -04:00
Jordan Cristiano
c07678a37e Added _CRT_SECURE_NO_WARNINGS define to remove warnings for fopen 2015-06-14 17:27:21 -04:00
Jordan Cristiano
cf4068fde7 Added asserts for message id type 2015-06-14 17:26:29 -04:00
Jordan Cristiano
b3daf554a7 Fixed typo 2015-06-14 17:26:05 -04:00
Jordan Cristiano
38ff2f956e Moved demo reading/writing sources to io directory 2015-06-14 17:25:49 -04:00
Jordan Cristiano
a504a0e492 Made demreader use demmessage handling funcs 2015-06-14 17:24:04 -04:00
Jordan Cristiano
b1830dccae Added demo message handling functions 2015-06-14 17:23:09 -04:00
Jordan Cristiano
cc7066ac86 Fixed demowriter not writing packet type before the packet 2015-06-14 17:21:56 -04:00
Jordan Cristiano
b06015835c Fixed demo writer writing empty packets 2015-06-14 17:21:34 -04:00
Jordan Cristiano
4218c60eff Moved demofile headers to demofile directory 2015-06-14 17:09:41 -04:00
Jordan Cristiano
fbb73f1b75 Added status check IsOk function for demo file reader/writer 2015-06-14 17:05:50 -04:00
Jordan Cristiano
3fd026efa9 Source formatting 2015-06-14 17:05:20 -04:00
Jordan Cristiano
44c36ab0f2 Added Array versions of ReadRawData and ReadUserCmd 2015-06-14 17:04:05 -04:00