1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Loader entry point: dispatches to the platform implementation.
//!
//! Windows maps the client with a remote-thread `LoadLibraryW`. Linux has two
//! ways in — riding `LD_PRELOAD` into a game it starts, or attaching to one
//! already running and making it `dlopen` the library itself — because the two
//! suit different moments and only one of them needs ptrace permission.
#[cfg(windows)]
#[path = "win.rs"]
mod imp;
#[cfg(unix)]
#[path = "linux.rs"]
mod imp;
fn main() {
imp::main();
}