feat: skip version

Allows to skip the game buiold number version check.
Related to #13.
This commit is contained in:
Janek
2024-04-03 20:02:36 +02:00
parent 212c88efaa
commit 900e5d2acc
4 changed files with 11 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ impl DmaCtx {
Ok(())
}
pub fn setup(connector: Connector, pcileech_device: String) -> anyhow::Result<DmaCtx> {
pub fn setup(connector: Connector, pcileech_device: String, skip_version: bool) -> anyhow::Result<DmaCtx> {
let inventory = Inventory::scan();
let os = {
@@ -66,7 +66,9 @@ impl DmaCtx {
engine_module,
};
ctx.check_version()?;
if !skip_version {
ctx.check_version()?;
}
Ok(ctx)
}