mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-11 16:41:12 -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();
|
||
|
}
|