mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-14 18:11:15 -05:00
11 lines
No EOL
235 B
C++
11 lines
No EOL
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();
|
|
} |