Skip to content

Commit

Permalink
made the warning more apparent, also fix these stupid ifdef issues
Browse files Browse the repository at this point in the history
  • Loading branch information
FireMario211 committed Jan 20, 2024
1 parent 7baf35c commit 4d64744
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,12 @@ class $modify(MenuLayer) {
const char* version = "V1.1.0 (Geode)";
#ifdef GEODE_IS_WINDOWS
ImGui::Text("%s - Windows", version);
#elif GEODE_IS_ANDROID32
ImGui::Text("%s - Android (32)", version);
#elif GEODE_IS_ANDROID32
ImGui::Text("%s - Android (64)", version);
#elif GEODE_IS_ANDROID
ImGui::Text("%s - Android", version);
#else // why does android not like elif
#ifdef GEODE_IS_ANDROID
ImGui::Text("%s - Android", version);
#else
ImGui::Text("%s - HOW by Spu7nix", version);
#endif
#endif
ImGui::Separator();
break;
Expand Down Expand Up @@ -488,6 +488,9 @@ class $modify(MenuLayer) {
prismButton->setVisible(hack->value.boolValue);
// TODO: add a check to see if currently on MenuLayer
}
if (name == "Instant Complete" && hack->value.boolValue) {
FLAlertLayer::create(nullptr, "Cheater!", "Just a warning, you will be <cr>banned off leaderboards</c> if you use this on rated levels. Consider this your <cy>warning</c>.", "OK", nullptr)->show();
}
if (Hacks::isHackEnabled("Enable Patching") && !opcodes.empty()) {
#ifdef GEODE_IS_WINDOWS
Hacks::applyPatches(name, opcodes, hack->value.boolValue);
Expand Down

0 comments on commit 4d64744

Please sign in to comment.