Skip to content

Commit

Permalink
Add Extras for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
Cvolton committed Oct 1, 2023
1 parent 94667f6 commit 179be2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@ void loadExtras() {
extras = Mod::get()->patch(reinterpret_cast<void*>(base::get() + 0xAA8CE), { 0x1 }).unwrap();
#endif

#ifdef GEODE_IS_ANDROID
log::info("Performing Android specific loading steps");
extras = Mod::get()->patch(reinterpret_cast<void*>(base::get() + 0x2a88e4), { 0x01, 0x23 }).unwrap();
#endif

#ifdef GEODE_IS_MACOS
log::info("Performing Mac specific loading steps");
extras = Mod::get()->patch(reinterpret_cast<void*>(base::get() + 0x2C7E82), { 0x89, 0xE1 }).unwrap(); //mov ecx, esp ; (very good, yes)

#endif

if(!extras) log::error("Enabling extras failed");
Expand Down

0 comments on commit 179be2a

Please sign in to comment.