Sign in Sign up
kretrod/lodestone Public
Branches
master
18 lines (15 loc) · 505 Bytes Raw
//! 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();
}