Commit Graph
100 Commits
Author SHA1 Message Date
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
Jordan Cristiano cafe9ccb7c Fixed maxclients showing as a char 2015-05-15 00:23:45 -04:00
Jordan Cristiano 907a804409 Added file and clog output for ConLogWriter 2015-05-15 00:23:17 -04:00
Jordan Cristiano 8c178bf9ac Added nethandler namespace api, added conlog writer 2015-05-14 23:38:53 -04:00
Jordan Cristiano 3f9bd6e3f2 Added netmsg struct allocation 2015-05-14 23:17:38 -04:00
Jordan Cristiano e13608fcd6 Linking fixes, added game context var 2015-05-14 22:02:29 -04:00
Jordan Cristiano 90d39bc498 Moved netmsg implementations, restructure 2015-05-14 21:36:57 -04:00
Jordan Cristiano 78de8690ab Added demo writer interface, restructure 2015-05-12 20:39:56 -04:00
Jordan Cristiano 9834880bc5 Fixed bitbuf compilation 2015-05-10 23:38:07 -04:00
Jordan Cristiano cd6badfe1f Added bitbuf from source sdk 2013 2015-05-09 23:23:06 -04:00
Jordan Cristiano 0fe0ac912a Verified SVC_ClassInfo and SVC_VoiceInit 2015-05-04 00:51:36 -04:00
Jordan Cristiano d009d019d2 Added dummy handling of consolecmd, usercmd, datatables, stringtables 2015-05-03 22:46:04 -04:00
Jordan Cristiano 271a22f148 Code cleanup 2015-05-03 22:40:41 -04:00
Jordan Cristiano 066b9fe269 Verified Net_SetConVar and Net_SignonState 2015-05-03 21:17:14 -04:00
Jordan Cristiano ad466a06f4 Modified SVC_CreateStringTable for current protocol 2015-05-03 21:10:36 -04:00
Jordan Cristiano d2a3b88526 Modified SVC_ServerInfo for current protocol 2015-05-03 20:46:56 -04:00
Jordan Cristiano 84d458de5b Fixed incorrect arg index 2015-05-03 20:28:53 -04:00
Jordan Cristiano b54f9c2290 Replaced usage of string with vector<unsigned char> 2015-05-03 20:27:12 -04:00
Jordan Cristiano b3bab786c8 Removed filename member var from demofile 2015-05-03 20:18:41 -04:00
Jordan Cristiano ad81ecc67d Removed game event file loading, as stv demos have a game event list in them 2015-05-03 20:16:13 -04:00
Jordan Cristiano 9a6c95a327 Added initial netmsg handlers, need to confirm them with current demo protocol 2015-05-03 20:13:35 -04:00
Jordan Cristiano 5fc4c59245 wip event parsing 2015-04-30 16:03:22 -04:00
Jordan Cristiano 9bb4aa46e8 Added packet parsing logic and assertions for frame and tick count 2014-10-29 01:35:43 -04:00
Jordan Cristiano 5e43ccfa06 Changes for TF2 demo compatibility 2014-10-29 01:15:40 -04:00