mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix loading of non-mapped keys
This commit is contained in:
parent
71404c3d13
commit
1fabe1f78e
1 changed files with 3 additions and 4 deletions
|
@ -632,14 +632,13 @@ void LoadFromIni(IniFile &file) {
|
|||
|
||||
IniFile::Section *controls = file.GetOrCreateSection("ControlMapping");
|
||||
for (int i = 0; i < ARRAY_SIZE(psp_button_names); i++) {
|
||||
if (!controls->Exists(psp_button_names[i].name.c_str()))
|
||||
continue;
|
||||
std::string value;
|
||||
controls->Get(psp_button_names[i].name.c_str(), &value, "");
|
||||
if (value.empty())
|
||||
continue;
|
||||
|
||||
// Erase default mapping
|
||||
g_controllerMap.erase(psp_button_names[i].key);
|
||||
if (value.empty())
|
||||
continue;
|
||||
|
||||
std::vector<std::string> mappings;
|
||||
SplitString(value, ',', mappings);
|
||||
|
|
Loading…
Add table
Reference in a new issue