Add a simple utility to help bug reporting: Copy ppsspp.ini to clipboard

This commit is contained in:
Henrik Rydgård committed 2026-02-17 10:18:08 +01:00
1 parent 045368656f
commit ab4ca14773
4 files changed
+30 -1

No files matched your search

+11
View File
@@ -206,6 +206,17 @@ void DeveloperToolsScreen::CreateGeneralTab(UI::LinearLayout *list) {
#if PPSSPP_PLATFORM(IOS)
list->Add(new Choice(dev->T("Copy savestates to memstick root")))->OnClick.Handle(this, &DeveloperToolsScreen::OnCopyStatesToRoot);
#endif
auto di = GetI18NCategory(I18NCat::DIALOG);
// Reuse strings to the max, heh.
list->Add(new Choice(ApplySafeSubstitutions("%1: ppsspp.ini", di->T("Copy to clipboard"))))->OnClick.Add([=](UI::EventParams &) {
auto di = GetI18NCategory(I18NCat::DIALOG);
std::string configStr = g_Config.GetConfigAsString();
if (!configStr.empty()) {
System_CopyStringToClipboard(configStr);
g_OSD.Show(OSDType::MESSAGE_INFO, ApplySafeSubstitutions(di->T("Copied to clipboard: %1"), "ppsspp.ini"), 1.0f);
}
});
}
void DeveloperToolsScreen::CreateTestsTab(UI::LinearLayout *list) {