prepare for config import/export/reset

This commit is contained in:
tildearrow 2024-05-17 12:45:31 -05:00
parent bc11f983ee
commit 724632e2a3
3 changed files with 26 additions and 0 deletions

View file

@ -980,6 +980,21 @@ void FurnaceGUI::drawSettings() {
settingsChanged=true;
}
// SUBSECTION CONFIGURATION
CONFIG_SUBSECTION("Configuration");
if (ImGui::Button("Import")) {
openFileDialog(GUI_FILE_IMPORT_CONFIG);
}
ImGui::SameLine();
if (ImGui::Button("Export")) {
openFileDialog(GUI_FILE_EXPORT_CONFIG);
}
pushDestColor();
if (ImGui::Button("Factory Reset")) {
showWarning("Are you sure you want to reset all Furnace settings?\nYou must restart Furnace after doing so.",GUI_WARN_RESET_CONFIG);
}
popDestColor();
END_SECTION;
}
CONFIG_SECTION("Audio") {