1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

#9285 Add feature to remember scernario tab

This commit is contained in:
Spongeloaf
2019-06-21 12:54:49 -04:00
parent 6bd298b3a3
commit 5777074a3e
4 changed files with 17 additions and 3 deletions

View File

@@ -300,6 +300,7 @@ namespace Config
model->current_theme_preset = reader->GetCString("current_theme", "*RCT2");
model->current_title_sequence_preset = reader->GetCString("current_title_sequence", "*OPENRCT2");
model->object_selection_filter_flags = reader->GetInt32("object_selection_filter_flags", 0x3FFF);
model->scenarioselect_last_tab = reader->GetInt32("scenarioselect_last_tab", 0);
}
}
@@ -317,6 +318,7 @@ namespace Config
writer->WriteString("current_theme", model->current_theme_preset);
writer->WriteString("current_title_sequence", model->current_title_sequence_preset);
writer->WriteInt32("object_selection_filter_flags", model->object_selection_filter_flags);
writer->WriteInt32("scenarioselect_last_tab", model->scenarioselect_last_tab);
}
static void ReadSound(IIniReader* reader)