GUI: Add menu option to open examples directory

This commit is contained in:
Colin Kinloch 2024-01-03 21:59:53 +00:00 committed by tildearrow
parent 6956443904
commit 04f2039803
3 changed files with 22 additions and 8 deletions

View file

@ -4316,6 +4316,11 @@ bool FurnaceGUI::loop() {
ImGui::EndMenu();
}
}
#if defined(FURNACE_DATADIR) && defined(SHOW_OPEN_ASSETS_MENU_ENTRY)
if (ImGui::MenuItem("open built-in assets directory")) {
SDL_OpenURL("file://" FURNACE_DATADIR);
}
#endif
ImGui::BeginDisabled(exitDisabledTimer);
ImGui::Separator();
if (ImGui::MenuItem("restore backup",BIND_FOR(GUI_ACTION_OPEN_BACKUP))) {