Commit Graph
100 Commits
Author SHA1 Message Date
Jordan Cristiano 04b79ff3f8 Updated to cbase64-1.1 2015-07-12 22:57:26 -04:00
Jordan Cristiano e959fb0334 Added WriteChar func to JsonWriterFile 2015-07-12 20:51:25 -04:00
Jordan Cristiano 236919cc4c Added net/dem msg create/destroy funcs to handler namespaces 2015-07-11 03:02:49 -04:00
Jordan Cristiano 1b90dc6298 Changed svc_menu type cast to signed 2015-07-11 02:23:18 -04:00
Jordan Cristiano ef50be7054 Replaced libb64-1.2.1 with cbase64-1.0 2015-07-09 20:52:06 -04:00
Jordan Cristiano 87a3d645e4 Commented out json verifier in main 2015-07-06 00:12:04 -04:00
Jordan Cristiano ab79444732 Added fflush to JsonWriterFile Flush function 2015-07-05 23:44:14 -04:00
Jordan Cristiano 2e597565bf Changed json output to an object stream based format 2015-07-05 23:42:08 -04:00
Jordan Cristiano 43745b85f5 DEM format documentation 2015-07-03 00:27:45 -04:00
Jordan Cristiano 38ff1bd261 Started documenting the dem format 2015-07-02 23:01:26 -04:00
Jordan Cristiano 8e13067339 The last byte of stv demos is cut off, so do that here too 2015-06-30 01:34:55 -04:00
Jordan Cristiano 7bdbce9aef Fixed naming in dem_stringtables structure 2015-06-29 23:31:48 -04:00
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
Jordan Cristiano 284a99fff7 Renamed parameters in Read/WriteUserCmd and ReadRawData 2015-06-14 17:03:19 -04:00
Jordan Cristiano 569a482549 Changed sourcesdk include to just include externals path 2015-06-14 16:49:44 -04:00
Jordan Cristiano 4c560eacac Added array class 2015-06-14 16:12:09 -04:00
Jordan Cristiano 21087117d7 Remove old netmessages source 2015-06-09 17:41:39 -04:00
Jordan Cristiano 4a2922edaa Added dem_unknown to demo messages enum 2015-05-27 23:10:58 -04:00
Jordan Cristiano 6304643a89 Added parsing of dem_stringtables 2015-05-27 22:58:53 -04:00
Jordan Cristiano 2ed3320b84 Partial implementation of demo file writer 2015-05-27 22:58:19 -04:00
Jordan Cristiano 05d1518653 Made DemoFileReader::ReadUserCmd return length of usercmd instead of sequence number 2015-05-27 22:57:30 -04:00
Jordan Cristiano 803db77e49 Added SourceGameContext& to IDemoWriter::WriteNetPacket 2015-05-27 22:54:07 -04:00
Jordan Cristiano d9df1117f5 Fixed __restrict warning in bitbuf 2015-05-27 22:52:10 -04:00
Jordan Cristiano 6a40e771af Netmessage cleanup 2015-05-27 22:51:30 -04:00
Jordan Cristiano bbf100a5c7 Removed dem_customdata because it's not in this protocol set 2015-05-26 19:03:16 -04:00
Jordan Cristiano 3c4c786283 Removed unused var in svc_updatestringtable 2015-05-15 20:46:09 -04:00
Jordan Cristiano fe967e7656 Added missing stdlib.h for abs on gcc 2015-05-15 19:16:15 -04:00
Jordan Cristiano c2336e52c4 Removed pragma once in cpp files 2015-05-15 19:15:58 -04:00
Jordan Cristiano fc622bc5ef Replaced std::defaultfloat with unsetf call. defaultfloat is not available in gcc <5 2015-05-15 18:58:36 -04:00
Jordan Cristiano 90c0fdce58 this is demboyz 2015-05-15 18:10:23 -04:00
Jordan Cristiano a21064df37 Added premake run scripts for linux and osx 2015-05-15 18:07:15 -04:00
Jordan Cristiano 8455736f7c Made clang the default compiler for gmake 2015-05-15 18:06:05 -04:00
Jordan Cristiano 2e75619f42 Fixed incorrect macro concat operation 2015-05-15 18:05:28 -04:00
Jordan Cristiano 63ca708b6f Fixed pragma once in cpp 2015-05-15 18:04:43 -04:00
Jordan Cristiano b49416489c Added buffered output to stdout when using .con output 2015-05-15 17:45:37 -04:00
Jordan Cristiano 3c2dc07c82 Fixed conversion warnings in bitbuf 2015-05-15 17:43:20 -04:00
Jordan Cristiano f5878e872b Fixed truncated return value from ReadSignedVarInt64 2015-05-15 17:41:01 -04:00
Jordan Cristiano 659c651f8d Added symbols to all builds 2015-05-15 17:35:08 -04:00
Jordan Cristiano 55e47871ea Removed extra qualification on vector member funcs 2015-05-15 17:34:52 -04:00
Jordan Cristiano 0a228bb722 Fixed pragma once in cpp file 2015-05-15 17:34:32 -04:00
Jordan Cristiano 04696d29f9 Added .con to usage string 2015-05-15 02:56:52 -04:00
Jordan Cristiano 3d80d17a99 Made NetHandler Write functions take a const SourceGameContext 2015-05-15 02:49:51 -04:00
Jordan Cristiano 9a0956e8f2 Fixed svc_prefetch parsing 2015-05-15 01:24:24 -04:00
Jordan Cristiano 6ec0224848 Fixed svc_tempentities parsing 2015-05-15 01:15:11 -04:00
Jordan Cristiano b6ee526d54 Fixed incorrect unsigned type 2015-05-15 01:04:18 -04:00
Jordan Cristiano 2e8c0a742f Fixed net_nop causing empty lines in output 2015-05-15 01:03:59 -04:00
Jordan Cristiano 063c2f515c Fixed missing space in svc_packetentities 2015-05-15 00:55:24 -04:00
Jordan Cristiano 3dd9bc7fca Fixed having less than the required number of bits for the data length 2015-05-15 00:55:07 -04:00
Jordan Cristiano dc06efc1f3 Fixed incorrect packet buffer sizes 2015-05-15 00:54:05 -04:00
Jordan Cristiano 3752aecfa4 Fixed uint8_t displaying as char 2015-05-15 00:37:14 -04:00
Jordan Cristiano ce51a094c2 Removed redundant newline 2015-05-15 00:25:44 -04:00