Skip to content

Commit de45f43

Browse files
committed
Remove pc stuff part 2
1 parent cf40b80 commit de45f43

File tree

1 file changed

+1
-40
lines changed

1 file changed

+1
-40
lines changed

src/main.cpp

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
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

85
using 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+
};

0 commit comments

Comments
 (0)