33 lines
646 B
Rust
33 lines
646 B
Rust
use std::io;
|
|
|
|
use dynll::{lib, Lib};
|
|
|
|
pub struct MyLib;
|
|
|
|
impl Lib for MyLib {
|
|
fn init(&mut self) {}
|
|
lib! {
|
|
fn 0x24() {}
|
|
}
|
|
}
|
|
|
|
const APP: &str = "Test-1.4.2";
|
|
|
|
fn main() -> io::Result<()> {
|
|
// dynll::run(MyLib, APP)?;
|
|
|
|
let mut test = dynll::binder::DynLib::load(APP)?;
|
|
println!("Connected");
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
test.call::<()>(0x23).unwrap();
|
|
println!("Done");
|
|
|
|
Ok(())
|
|
}
|