mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-01 07:40:18 -04:00
macos early version check
This commit is contained in:
parent
a4c6b71ee4
commit
408395064d
1 changed files with 14 additions and 0 deletions
|
@ -136,6 +136,20 @@ void applicationDidFinishLaunchingHook(void* self, SEL sel, NSNotification* noti
|
|||
|
||||
|
||||
bool loadGeode() {
|
||||
if (GEODE_STR(GEODE_GD_VERSION) != Loader::get()->getGameVersion()) {
|
||||
console::messageBox(
|
||||
"Unable to Load Geode!",
|
||||
fmt::format(
|
||||
"This version of Geode is made for Geometry Dash {} "
|
||||
"but you're trying to play with GD {}.\n"
|
||||
"Please, update your game.",
|
||||
GEODE_STR(GEODE_GD_VERSION),
|
||||
LoaderImpl::get()->getGameVersion()
|
||||
)
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto detourAddr = reinterpret_cast<uintptr_t>(&applicationDidFinishLaunchingHook) - geode::base::get() - ENTRY_ADDRESS - 5;
|
||||
auto detourAddrPtr = reinterpret_cast<uint8_t*>(&detourAddr);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue