-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added: Readme, Logo, Changelog to R-II Package
- Loading branch information
Showing
9 changed files
with
144 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ jobs: | |
} | ||
- name: Build | ||
run: ./External/Reloaded.Memory.SigScan.ReloadedII/Publish.ps1 -ChangelogPath "$env:PUBLISH_CHANGELOG_PATH" | ||
run: ./External/Reloaded.Memory.SigScan.ReloadedII/Publish.ps1 -ChangelogPath "$env:PUBLISH_CHANGELOG_PATH" -ReadmePath "./External/Reloaded.Memory.SigScan.ReloadedII/README-RII.md" | ||
|
||
- name: Upload GitHub Release Artifact | ||
uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## Reloaded-II Shared Library | ||
|
||
[For information on consuming Shared Libraries, see [Dependency Injection in Reloaded II](https://reloaded-project.github.io/Reloaded-II/DependencyInjection_Consumer/).] | ||
|
||
[![NuGet](https://img.shields.io/nuget/v/Reloaded.Memory.SigScan.ReloadedII.Interfaces)](https://www.nuget.org/packages/Reloaded.Memory.SigScan.ReloadedII.Interfaces) | ||
|
||
`Reloaded.Memory.SigScan.ReloadedII.Interfaces` [(NuGet)](https://www.nuget.org/packages/Reloaded.Memory.SigScan.ReloadedII.Interfaces) exposes the following APIs: | ||
- `IStartupScanner`: Queues signature scans for batch parallel scanning. | ||
- `IScannerFactory`: Creates `Scanner` instances. | ||
|
||
It is highly recommended that you use `IStartupScanner` in your mods. | ||
Running signature scans in parallel provides very significant gains to startup time. | ||
|
||
Scans submitted to this class are performed in the order they are submitted. | ||
There is no need to worry about conflicts/race conditions. | ||
|
||
Example: | ||
```csharp | ||
void Start() | ||
{ | ||
// ... code omitted | ||
_modLoader.GetController<IStartupScanner>().TryGetTarget(out var startupScanner); | ||
startupScanner.AddMainModuleScan("C3", OnMainModuleScan); | ||
} | ||
|
||
private void OnMainModuleScan(PatternScanResult result) | ||
{ | ||
_logger.WriteLine($"Found `ret` at: {result.Offset}"); | ||
} | ||
``` | ||
|
||
If you need additional APIs in `IStartupScanner`, such as scanning custom/different ranges, please let me know. For now the API only handles the common use case. | ||
|
||
## Acknowledgements | ||
|
||
Vectorised implementations of `Reloaded.Memory.Sigscan` are based off of a modified version of `LazySIMD` by [uberhalit](https://github.com/uberhalit). | ||
[Binary by ismail abdurrasyid from Noun Project](https://thenounproject.com/browse/icons/term/binary/). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.