mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-24 00:17:52 -05:00
11 lines
235 B
C++
11 lines
235 B
C++
|
#include <dlfcn.h>
|
||
|
#include <unistd.h>
|
||
|
#include <thread>
|
||
|
|
||
|
void inject() __attribute__((constructor)) {
|
||
|
std::thread t1([]() {
|
||
|
sleep(1);
|
||
|
dlopen("/Library/MobileSubstrate/DynamicLibraries/Geode.dylib", RTLD_NOW);
|
||
|
});
|
||
|
t1.detach();
|
||
|
}
|