mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Support reading file version from Windows executables
This commit is contained in:
+8
-2
@@ -1,6 +1,7 @@
|
||||
extern crate crc;
|
||||
#[macro_use]
|
||||
extern crate nom;
|
||||
extern crate pelite;
|
||||
extern crate regex;
|
||||
|
||||
#[cfg(test)]
|
||||
@@ -24,8 +25,7 @@ use function::Function;
|
||||
pub enum Error {
|
||||
ParsingIncomplete,
|
||||
ParsingError,
|
||||
InvalidPath(PathBuf),
|
||||
InvalidRegex(String),
|
||||
PeParsingError,
|
||||
IoError(io::Error),
|
||||
}
|
||||
|
||||
@@ -44,6 +44,12 @@ impl From<io::Error> for Error {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<pelite::resources::FindError> for Error {
|
||||
fn from(_: pelite::resources::FindError) -> Self {
|
||||
Error::PeParsingError
|
||||
}
|
||||
}
|
||||
|
||||
pub enum GameType {
|
||||
Tes4,
|
||||
Tes5,
|
||||
|
||||
Reference in New Issue
Block a user