Initial commit (history reset)
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
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(())
|
||||
}
|
||||
Reference in New Issue
Block a user