Skip to content

Commit a0f019b

Browse files
committed
inlined func
1 parent 8b1e4e7 commit a0f019b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

resources/hacks/player.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
{
4747
"name": "Jump Hack",
4848
"desc": "Allows for jumping in mid-air.",
49-
"type": "bool"
49+
"type": "bool",
50+
"platforms": ["win", "android64", "android32"]
5051
},
5152
{
5253
"name": "Instant Complete",

src/Hacks/Player.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,15 @@ class $modify(PlayerObject) {
6060
if (!Hacks::isHackEnabled("No Death Effect")) return PlayerObject::playerDestroyed(p0);
6161
m_isDead = true;
6262
}
63+
#ifndef GEODE_IS_MACOS
6364
bool pushButton(PlayerButton p0) {
6465
if (p0 != PlayerButton::Jump) return PlayerObject::pushButton(p0);
6566
float boost = 10.0F;
6667
boost = (m_isUpsideDown) ? -boost : boost;
6768
if (Hacks::isHackEnabled("Jump Hack")) PlayerObject::boostPlayer(boost); // idk if i should make this customizable
6869
return PlayerObject::pushButton(p0);
6970
}
71+
#endif
7072
void toggleDartMode(bool p0, bool p1) {
7173
// this is the fix until someone actually creates pads for android32 and android64, because i cant use m_isDart
7274
m_fields->isActuallyDart = p0;

0 commit comments

Comments
 (0)