Move Section out of IniFile so it can be forward declared. Unlocked further improvements to build speed.

This commit is contained in:
Henrik Rydgård
2020-08-10 15:53:52 +02:00
parent 72d5b29434
commit 5ec2da0f2d
20 changed files with 186 additions and 170 deletions
+2 -2
View File
@@ -916,7 +916,7 @@ void LoadFromIni(IniFile &file) {
return;
}
IniFile::Section *controls = file.GetOrCreateSection("ControlMapping");
Section *controls = file.GetOrCreateSection("ControlMapping");
for (size_t i = 0; i < ARRAY_SIZE(psp_button_names); i++) {
std::string value;
controls->Get(psp_button_names[i].name, &value, "");
@@ -943,7 +943,7 @@ void LoadFromIni(IniFile &file) {
}
void SaveToIni(IniFile &file) {
IniFile::Section *controls = file.GetOrCreateSection("ControlMapping");
Section *controls = file.GetOrCreateSection("ControlMapping");
for (size_t i = 0; i < ARRAY_SIZE(psp_button_names); i++) {
std::vector<KeyDef> keys;