aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9e605d8..60b404c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -915,4 +915,16 @@ impl Log {
})
.collect()
}
+
+ /// Returns the game's build id.
+ ///
+ /// If no build id was found, `None` is returned.
+ pub fn build_id(&self) -> Option<u64> {
+ for event in self.events() {
+ if let EventKind::Build { build } = event.kind() {
+ return Some(*build)
+ }
+ }
+ None
+ }
}