[wpigui] Add platform-specific preferences save

This commit is contained in:
Prateek Machiraju
2020-12-05 21:04:02 -05:00
committed by Peter Johnson
parent 751dea32ae
commit 2c5668af46
4 changed files with 34 additions and 1 deletions

View File

@@ -91,7 +91,7 @@ int main() {
gPlotProvider = std::make_unique<glass::PlotProvider>("Plot");
gNtProvider = std::make_unique<glass::NetworkTablesProvider>("NTProvider");
gui::AddInit([] { ImGui::GetIO().IniFilename = "glass.ini"; });
gui::ConfigurePlatformSaveFile("glass.ini");
gPlotProvider->GlobalInit();
gui::AddInit([] { gPlotProvider->ResetTime(); });
gNtProvider->GlobalInit();