libmem 4.0.0

Game Hacking Library (Windows/Linux/FreeBSD)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::env;

fn main() {
    let mut libmem_path;

    if cfg!(windows) {
        libmem_path = String::from(env::var("ProgramFiles").unwrap());
        libmem_path.push_str("\\libmem\\lib");
    } else {
        libmem_path = String::from("/usr/lib")
    }

    println!("cargo:rustc-link-search={}", libmem_path);
}