This commit is contained in:
HJfod 2022-10-08 12:59:25 +03:00
commit dbf8c4af22
3 changed files with 6 additions and 1 deletions
loader
include/Geode/modify
launcher/mac
src

View file

@ -2,6 +2,7 @@
#include <Geode/Bindings.hpp>
#include "Traits.hpp"
#include <Geode/loader/Loader.hpp>
#include <vector>
namespace geode::modifier {

View file

@ -34,7 +34,7 @@ __attribute__((constructor)) void _entry() {
if (error) return;
}
auto dylib = dlopen("Geode.dylib", RTLD_NOW);
auto dylib = dlopen("Geode.dylib", RTLD_LAZY);
if (dylib) return;
return;

View file

@ -14,6 +14,7 @@ int geodeEntry(void* platformData);
#if defined(GEODE_IS_IOS) || defined(GEODE_IS_MACOS)
#include <mach-o/dyld.h>
#include <unistd.h>
#include <dlfcn.h>
std::length_error::~length_error() _NOEXCEPT {} // do not ask...
@ -22,6 +23,9 @@ std::length_error::~length_error() _NOEXCEPT {} // do not ask...
// this is what old versions does to a silly girl
__attribute__((constructor)) void _entry() {
auto dylib = dlopen("GeodeBootstrapper.dylib", RTLD_NOLOAD);
dlclose(dylib);
std::array<char, PATH_MAX> gddir;
uint32_t out = PATH_MAX;