Skip to content

Commit b384fed

Browse files
committed
Fixed keybinds being imported on non-windows platforms
1 parent 09b59f0 commit b384fed

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include <charconv>
22

3-
#include <geode.custom-keybinds/include/Keybinds.hpp>
4-
53
#include <Geode/Geode.hpp>
64

75
#include <Geode/modify/MenuLayer.hpp>
@@ -15,13 +13,12 @@
1513

1614
#include "settings.hpp"
1715

18-
using namespace geode::prelude;
19-
using namespace keybinds;
20-
2116
#if defined(GEODE_IS_ANDROID) || defined(GEODE_IS_IOS)
2217
#include "mobile.hpp"
2318
#endif
2419

20+
using namespace geode::prelude;
21+
2522
float clamp(float d, float min, float max) {
2623
const float t = d < min ? min : d;
2724
return t > max ? max : t;

src/settings.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#include "settings.hpp"
22

3-
#include <geode.custom-keybinds/include/Keybinds.hpp>
43
#include <Geode/Geode.hpp>
54

65
using namespace geode::prelude;
6+
7+
#if defined(GEODE_IS_WINDOWS)
8+
#include <geode.custom-keybinds/include/Keybinds.hpp>
79
using namespace keybinds;
10+
#endif
811

912
SettingsManager* SettingsManager::get() {
1013
static auto inst = new SettingsManager;

0 commit comments

Comments
 (0)