From e679a403e176915af0896c1eab35b1c7a4113967 Mon Sep 17 00:00:00 2001 From: ko1N Date: Sat, 21 Nov 2020 23:24:55 +0100 Subject: [PATCH] Updated leechcore submodule and fixed linux warnings --- leechcore-sys/src/leechcore | 2 +- leechcore-sys/src/lib.rs | 8 +++----- memmap.toml | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 memmap.toml diff --git a/leechcore-sys/src/leechcore b/leechcore-sys/src/leechcore index 9a744a3..9b859f1 160000 --- a/leechcore-sys/src/leechcore +++ b/leechcore-sys/src/leechcore @@ -1 +1 @@ -Subproject commit 9a744a313a023bde5b8e710597f3690a27561906 +Subproject commit 9b859f127784961882ab8ea8803043b37fd1ab61 diff --git a/leechcore-sys/src/lib.rs b/leechcore-sys/src/lib.rs index 02be8de..437f6a6 100644 --- a/leechcore-sys/src/lib.rs +++ b/leechcore-sys/src/lib.rs @@ -4,18 +4,16 @@ #![allow(improper_ctypes)] #![allow(clippy::missing_safety_doc)] -//#![allow(clippy::useless_transmute)] -//#![allow(clippy::cognitive_complexity)] - include!(concat!(env!("OUT_DIR"), "/leechcore.rs")); +#[cfg(target_os = "windows")] +use ctor::{ctor, dtor}; + #[cfg(target_os = "windows")] extern "C" { pub fn DllMain(_: *const u8, _: u32, _: *const u8) -> u32; } -use ctor::{ctor, dtor}; - #[ctor] #[cfg(target_os = "windows")] fn leechcore_attach() { diff --git a/memmap.toml b/memmap.toml new file mode 100644 index 0000000..efb8718 --- /dev/null +++ b/memmap.toml @@ -0,0 +1,19 @@ +[[range]] +base=0x1000 +length=0x9f000 + +[[range]] +base=0x100000 +length=0xda288000 + +[[range]] +base=0x100000000 +length=0x720000000 + +[[range]] +base=0xddd03000 +length=0x1000 + +[[range]] +base=0xddd8a000 +length=0x276000