Commits

Marianne Gagnon  committed f3a10d6

Hack to make sure keyboard configuration is saved

  • Participants
  • Parent commits ff787c6

Comments (0)

Files changed (1)

File mupen64plusplus/MupenAPIpp.cpp

         errmsg = errmsg + getErrorMessage(result);
         throw std::runtime_error(errmsg);
     }
+    
+    // HACK: when the name of a device is 'AutoKeyboard', mupen will not reload
+    //       the config. Since wxmupen is all about changing the config, don't
+    //       let mupen do that :)
+    if (m_param_name == "name" and std::string(buffer) == "AutoKeyboard")
+    {
+        return "CustomKeyboardConfig";
+    }
 
     return std::string(buffer);
 }