mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-18 03:42:25 -05:00
041a98ee4d
compilation still won't work, pending implementations for gdstl/codegen/tuliphook. the first two should be mostly done already. may also be good to get FileWatcher, crashlog, and the file picker implemented but they aren't necessary the libcurl.a and libssl.a files were built using https://github.com/ibaoger/libcurl-android. they are placed in the link/android folder because putting them in the link folder confused the macOS build. once built, the geode binary should be loaded after nativeSetApkPath is ran (otherwise the directory setup crashes). in the future it would be nice if the internal mod also did save data path redirection, as base GD is incapable of doing this Co-authored-by: mat <26722564+matcool@users.noreply.github.com>
24 lines
491 B
C++
24 lines
491 B
C++
#pragma once
|
|
|
|
#include <dlfcn.h>
|
|
|
|
namespace geode {
|
|
struct PlatformInfo {
|
|
void* m_so;
|
|
};
|
|
}
|
|
|
|
namespace geode::base {
|
|
GEODE_NOINLINE inline uintptr_t get() {
|
|
static uintptr_t base = reinterpret_cast<uintptr_t>(dlopen("libcocos2dcpp.so", RTLD_LAZY));
|
|
return base;
|
|
}
|
|
}
|
|
|
|
namespace geode::cast {
|
|
template <class After, class Before>
|
|
After typeinfo_cast(Before ptr) {
|
|
// yall have symbols smh
|
|
return dynamic_cast<After>(ptr);
|
|
}
|
|
}
|