We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcffb29 commit 5e4cc4dCopy full SHA for 5e4cc4d
mod.json
@@ -1,5 +1,5 @@
1
{
2
- "geode": "4.0.0-beta.1",
+ "geode": "4.0.1",
3
"gd": {
4
"win": "2.2074",
5
"android": "2.2074"
src/Keybinds.cpp
@@ -326,6 +326,9 @@ Bind* BindManager::loadBind(matjson::Value const& json) const {
326
bool BindManager::loadActionBinds(ActionID const& action) {
327
auto inner = [&]() -> Result<> {
328
auto value = Mod::get()->getSavedValue<matjson::Value>(action);
329
+ if(!value["binds"].isArray()) {
330
+ return Err("Bind not set");
331
+ }
332
for (auto bind : value["binds"]) {
333
// try directly parsing the bind from a string if the device it's for
334
// is already connected
0 commit comments