Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-05-02 | implement Hash, Default, PartialEq for raw types | Daniel Schadt | |
2020-05-02 | add more documentation | Daniel Schadt | |
2020-05-01 | add a comment about redundant closures | Daniel Schadt | |
2020-05-01 | take readers by value | Daniel Schadt | |
The API guidelines for Rust state that readers should be taken by value[1]. If the caller wants to re-use the reader, they have to borrow it. This patch adjusts the parsing functions to do just that. [1]: https://rust-lang.github.io/api-guidelines/interoperability.html#generic-readerwriter-functions-take-r-read-and-w-write-by-value-c-rw-value | |||
2020-04-27 | remove try_trait | Daniel Schadt | |
The .ok_or() method on Option is enough for those two occasions that we don't need to activate the complete try_trait feature just for a very small and questionable ergonomics gain. This also allows us to more easily discern which data exactly was invalid, as the .ok_or() in different places could take different error values. This also allows evtclib to be used on stable now. Some noise is introduced in the diff due to automatically re-formatting the source. | |||
2020-04-04 | switch from quick_error to thiserror | Daniel Schadt | |
thiserror seems to be the more modern approach that also works with the new Error trait from std. | |||
2019-05-24 | add support for partially parsing an EVTC file | Daniel Schadt | |
2018-10-10 | update to latest arcdps | Daniel Schadt | |
This comes with several changes: First, the revision header field is now properly parsed and saved, instead of just being hardcoded to zero. This is the first step in allowing newer log files to be parsed. To accommodate this, the Header struct has been extended with the "revision: u8" field. To be able to parse both formats, the CbtEvent struct has been changed. It is now the unification of both the new struct and the old struct, as the changes are pretty minor and mostly concern the parsing itself. The data types have been adjusted, and two fields have been added. Moving fields around does not concern CbtEvent at all. If the struct diverges more from this in the future, some splitting might be introduced, but for now, the change is pretty transparent to other code. During this process, the structs have lost their [repr(C]) property. It was never used, as the structs were not directly involved in C FFI. It has been a relic of the past from earlier iterations. Finally, the parsing function has been changed from parse_event to parse_event_rev0, with the addition of a parse_event_rev1. parse_events now takes the event parsing function as an additional parameter, and parse_file correctly choses the implementation based on the revision number. | |||
2018-09-06 | make parser more lenient | Daniel Schadt | |
Somehow, new files (after ~2018-08-10) won't parse without this. | |||
2018-06-14 | add support for reading zipped logs | Daniel Schadt | |
2018-04-23 | add a bit more documentation | Daniel Schadt | |
2018-04-23 | apply clippy's suggestions | Daniel Schadt | |
2018-04-14 | Initial commit | Daniel Schadt | |