Skip to content

Commit eee40b4

Browse files
committed
macos fixes
1 parent 525a253 commit eee40b4

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

loader/include/Geode/utils/Keyboard.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@ namespace geode {
4747
return value == other.value;
4848
}
4949

50+
constexpr bool operator!=(KeyboardModifiers other) const {
51+
return value != other.value;
52+
}
53+
54+
constexpr bool operator==(uint8_t other) const {
55+
return value == other;
56+
}
57+
58+
constexpr bool operator!=(uint8_t other) const {
59+
return value != other;
60+
}
61+
5062
uint8_t value = None;
5163
};
5264

loader/src/ui/mods/settings/KeybindsPopup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bool KeybindsPopup::init(bool forceDisableTheme) {
4949
m_tabsMenu->ignoreAnchorPointForPosition(false);
5050
m_tabsMenu->setContentWidth(m_listSize.width);
5151

52-
for (auto tab : std::initializer_list {
52+
for (auto tab : {
5353
std::make_tuple(KeybindsPopupTab::All, "keybinds.png"_spr, "All"),
5454
std::make_tuple(KeybindsPopupTab::Universal, "GJ_sMagicIcon_001.png", "Universal"),
5555
std::make_tuple(KeybindsPopupTab::Gameplay, "controllerBtn_DPad_Right_001.png", "Gameplay"),

loader/src/utils/Keyboard.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Result<Keybind> Keybind::fromString(std::string_view str) {
237237
}
238238

239239
std::string Keybind::toString() const {
240-
StringBuffer buf;
240+
StringBuffer<> buf;
241241
if (modifiers & Mods_Control) {
242242
buf.append("Ctrl+");
243243
}

0 commit comments

Comments
 (0)