From a79368800562da0ab2906f86b6e926671509623d Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 6 Jul 2013 21:30:27 +0200 Subject: [PATCH] Clear controller mapping sections in the ini to prevent them from growing out of control heh --- Common/KeyMap.cpp | 1 + native | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Common/KeyMap.cpp b/Common/KeyMap.cpp index 3df733ef1a..fa0b63ecb1 100644 --- a/Common/KeyMap.cpp +++ b/Common/KeyMap.cpp @@ -456,6 +456,7 @@ void SaveToIni(IniFile &file) { for (auto x = controllerMaps.begin(); x != controllerMaps.end(); ++x) { IniFile::Section *map = file.GetOrCreateSection(x->name.c_str()); + map->Clear(); map->Set("Active", x->active); for (auto iter = x->keys.begin(); iter != x->keys.end(); ++iter) { char key[128]; diff --git a/native b/native index cae8c04003..585081e1c0 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit cae8c040031dd53f20929ad65951a823868ed800 +Subproject commit 585081e1c0651c782411212464571691503239bd