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
764 stars 92 forks source link

I have encountered some trouble #133

Closed ytrsoft closed 1 year ago

ytrsoft commented 1 year ago

It does seem to be advanced enough, supporting C/C++, Rust, and Python, but as a Java developer, I tried generating a DLL for this project and using JNA to call it. However, the compiler told me that it was not a valid Win32 application, so I gave up on trying. I hope that someday it will support Java, or that it will generate a DLL or SO file that can be successfully called using JNA.

rdbo commented 1 year ago

It does seem to be advanced enough, supporting C/C++, Rust, and Python, but as a Java developer, I tried generating a DLL for this project and using JNA to call it. However, the compiler told me that it was not a valid Win32 application, so I gave up on trying. I hope that someday it will support Java, or that it will generate a DLL or SO file that can be successfully called using JNA.

Well, it isn't an "application", it is a library (DLL download available on the Releases). In theory, it should work with Java since I believe Java can call C code - you just have to make sure that the datatypes are the same as the libmem types.

rdbo commented 1 year ago

Windows x64 binaries: https://github.com/rdbo/libmem/releases/download/4.0.0/libmem-win-x64.zip Windows x86 binaries: https://github.com/rdbo/libmem/releases/download/4.0.0/libmem-win-x86.zip

rdbo commented 1 year ago

There are also build instructions on the README if you want to build from source.

ytrsoft commented 1 year ago

thank you❤.JNAerator successfully generated JNA code.