File tree Expand file tree Collapse file tree 1 file changed +1
-40
lines changed
Expand file tree Collapse file tree 1 file changed +1
-40
lines changed Original file line number Diff line number Diff line change 11#include < Geode/Geode.hpp>
22#include " JoystickNode.hpp"
33#include " utils.hpp"
4- #ifndef GEODE_IS_WINDOWS
5- #include < cxxabi.h>
6- #endif
74
85using namespace geode ::prelude;
96
@@ -46,40 +43,4 @@ class $modify(JSUILayer, UILayer) {
4643 p2move->setPosition ({10000 , 10000 });
4744 }
4845 }
49-
50- // refreshDpad is inlined :pensive:
51- #if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_ARM_MAC)
52-
53- void togglePlatformerMode (bool p0) {
54- UILayer::togglePlatformerMode (p0);
55-
56- fixVisibility ();
57- }
58-
59- #else
60-
61- void refreshDpad () {
62- UILayer::refreshDpad ();
63-
64- fixVisibility ();
65- }
66-
67- #endif
68- };
69-
70- #if defined(GEODE_IS_WINDOWS) || defined(GEODE_IS_ARM_MAC)
71-
72- #include < Geode/modify/PlayLayer.hpp>
73- class $modify (JSPlayLayer, PlayLayer) {
74- void resume () {
75- PlayLayer::resume ();
76- if (auto layer = getChildByType<UILayer>(0 )) {
77- auto jsLayer = static_cast <JSUILayer*>(layer);
78- if (jsLayer) {
79- jsLayer->fixVisibility ();
80- }
81- }
82- }
83- };
84-
85- #endif
46+ };
You can’t perform that action at this time.
0 commit comments