LiveSplit / asr

Helper crate to write auto splitters for LiveSplit One's auto splitting runtime.
https://livesplit.org/asr/asr
Apache License 2.0
10 stars 10 forks source link

Iterating through addresses matching a signature #103

Open Jujstme opened 1 month ago

Jujstme commented 1 month ago

This reimplements the signature scanner in order to allow it to return an iterator of addresses matching the signature provided, whereas previously the scan would invariably stop at the first match.

Returning an iterator has several advantages in case more than 1 match is expected, for example it allows the caller to select the target address based on a closure.

For convenience, two more additions have been made: