mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-17 19:32:28 -05:00
22 lines
412 B
C++
22 lines
412 B
C++
#pragma once
|
|
|
|
#include <cstring>
|
|
#include <mach-o/dyld.h>
|
|
#include <type_traits>
|
|
#include <typeinfo>
|
|
#include "ItaniumCast.hpp"
|
|
|
|
namespace geode {
|
|
using dylib_t = void*;
|
|
|
|
struct PlatformInfo {
|
|
dylib_t m_dylib;
|
|
};
|
|
}
|
|
|
|
namespace geode::base {
|
|
GEODE_NOINLINE inline uintptr_t get() {
|
|
static uintptr_t base = _dyld_get_image_vmaddr_slide(0) + 0x100000000;
|
|
return base;
|
|
}
|
|
}
|