mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 07:20:31 +02:00
Add a simple utility to help bug reporting: Copy ppsspp.ini to clipboard
This commit is contained in:
1 parent
045368656f
commit
ab4ca14773
4 files changed
+30
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user