We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d51d92d commit 1103528Copy full SHA for 1103528
src/Hacks/Speedhack.cpp
@@ -48,6 +48,20 @@ float speedhackLogic(float dt)
48
return dt;
49
}
50
51
+#ifdef GEODE_IS_MACOS
52
+
53
+class $modify (CCScheduler)
54
+{
55
+ virtual void update(float dt)
56
+ {
57
+ dt = speedhackLogic(dt);
58
59
+ ins->update(dt);
60
+ }
61
+};
62
63
+#else
64
65
void myUpdate(CCScheduler* ins, float dt)
66
{
67
dt = speedhackLogic(dt);
@@ -64,4 +78,6 @@ void myUpdate(CCScheduler* ins, float dt)
78
"cocos2d::CCScheduler::update",
79
tulip::hook::TulipConvention::Thiscall
80
);
-}
81
+}
82
83
+#endif
0 commit comments