rdbo / libmem

Advanced Game Hacking Library for C, Modern C++, Rust and Python (Windows/Linux/FreeBSD) (Process/Memory Hacking) (Hooking/Detouring) (Cross Platform) (x86/x64/ARM/ARM64) (DLL/SO Injection) (Internal/External) (Assembler/Disassembler)
GNU Affero General Public License v3.0
738 stars 90 forks source link

`lm_time_t` is private #219

Closed MolotovCherry closed 1 month ago

MolotovCherry commented 1 month ago

lm_process_t::get_start_time() returns lm_time_t, but the type alias is private

type lm_time_t = u64;

While I can use u64 as a replacement, it would be nice to use the original type alias

rdbo commented 1 month ago

In the new bindings, this is what the Process looks like:

#[derive(Debug, Clone, PartialEq)]
pub struct Process {
    pub pid: Pid,
    pub ppid: Pid,
    pub bits: usize,
    pub start_time: Time,
    pub path: String,
    pub name: String,
}

Everything easily accessible, and no weird stuff going on Time here is u64 as well