Commit Graph
188 Commits
Author SHA1 Message Date
Oliver Hamlet cb211d6ec3 Add support for an is_master(file path) function 2019-10-05 13:24:52 +01:00
Oliver Hamlet 90cbeff71a Update versions and changelog for v2.0.1 2.0.1 2019-07-23 19:15:35 +01:00
Oliver Hamlet b9d5d57dac Fix regex conditions returning true for partial matches
The regex engine implicitly adds .*? to the beginning and end of
expressions, so add ^ and $ to input expressions.
2019-07-23 19:04:22 +01:00
Oliver Hamlet 214cc93423 Update versions and changelog for v2.0.0 2.0.0 2019-06-30 11:25:24 +01:00
Oliver Hamlet 99e1c6d378 Don't error if an executable has no version info
Instead, treat it as having no version (so true if comparator is !=, <
or <=).
2019-06-30 11:25:24 +01:00
Oliver Hamlet 93b16a4c2a Update cbindgen, generate a single C/C++ header 2019-06-30 11:25:24 +01:00
Oliver Hamlet 954757a141 Replace deprecated Error::cause with Error::source
Error::source was added in Rust 1.30.0, and Error::cause was deprecated
in favour of it in Rust 1.33.0.
2019-06-30 11:25:24 +01:00
Oliver Hamlet 860995638c Rename LCI_GAME_* constants to use fewer acronyms
A minor quality of life improvement, to break the FFI compatibility in
step with the Rust library.
2019-06-30 11:25:23 +01:00
Oliver Hamlet 52792626af Update to Rust 2018 syntax 2019-06-30 11:25:23 +01:00
Oliver Hamlet 6cfefc6c31 Rename GameType variants to use fewer acronyms
A minor quality of life improvement since the nom 5 update is a
breaking change.
2019-06-30 11:25:23 +01:00
Oliver Hamlet 4db34be2c9 Upgrade to nom v5
Error handling has changed, affecting the error variants LCI exports,
and macros are replaced by functions, so all the parsing code has been rewritten.
2019-06-30 11:25:23 +01:00
Oliver Hamlet cb19ec084a Add coverage checking for Travis builds 2019-06-16 20:36:14 +01:00
Oliver Hamlet 44d73e0611 Apply clippy suggestions 2019-06-16 20:33:28 +01:00
Oliver Hamlet 611e4490d2 Replace deprecated libc::uint32_t with u32 2019-06-16 20:33:04 +01:00
Oliver Hamlet 2e05117b61 Update versions and changelog for v1.3.0 1.3.0 2019-04-07 12:25:40 +01:00
Oliver Hamlet f039ba397f Add GameType::Tes3 for Morrowind support 2019-04-07 12:20:10 +01:00
Oliver Hamlet ea3a922ee7 Update versions and changelog for v1.2.2 1.2.2 2019-01-26 09:50:40 +00:00
Oliver Hamlet 53a5e22225 Fix functions with a regex parameter not parsing closing ')' 2019-01-26 09:46:41 +00:00
Oliver Hamlet 529e4fc6d1 Error if not all the input is consumed when parsing expressions 2019-01-26 09:44:33 +00:00
Oliver Hamlet 3777c067a4 Update versions and changelog for v1.2.1 1.2.1 2019-01-20 00:47:21 +00:00
Oliver Hamlet 8e116d2980 Fix parsing executables with non-US-English version info resources
pelite is hardcoded to only look for US English version info resources,
but executables may not have any, so just get the first version info
resource instead.
2019-01-20 00:38:32 +00:00
Oliver Hamlet 517b636743 Update versions and changelog for v1.2.0 1.2.0 2018-12-22 23:51:01 +00:00
Oliver Hamlet 9ef82fe886 Run rustfmt (Rust 1.31.1) 2018-12-22 22:50:16 +00:00
Oliver Hamlet 5e1ba5709b Support parsing Script Extender product version fields
They've got a format that matches the format for fixed-size version fields in resource files.
2018-12-22 22:50:16 +00:00
Oliver Hamlet c90814a8ab Read product version from string field
File Explorer displays the ProductVersion version string field, not the fixed-size product version field, so read from it so that LOOT's behaviour matches.
2018-12-22 22:50:16 +00:00