mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
MIPSTracer filepicker fix
This commit is contained in:
1 parent
61c02466f8
commit
7df52582c6
1 file changed
+11
-5
@@ -578,12 +578,18 @@ UI::EventReturn DeveloperToolsScreen::OnMIPSTracerEnabled(UI::EventParams &e) {
|
||||
|
||||
UI::EventReturn DeveloperToolsScreen::OnMIPSTracerPathChanged(UI::EventParams &e) {
|
||||
auto dev = GetI18NCategory(I18NCat::DEVELOPER);
|
||||
System_BrowseForFile(GetRequesterToken(), dev->T("Select the log file"), BrowseFileType::ANY,
|
||||
System_BrowseForFileSave(
|
||||
GetRequesterToken(),
|
||||
dev->T("Select the log file"),
|
||||
"trace.txt",
|
||||
BrowseFileType::ANY,
|
||||
[this](const std::string &value, int) {
|
||||
mipsTracer.set_logging_path(value);
|
||||
MIPSTracerPath_ = value;
|
||||
MIPSTracerPath->SetRightText(MIPSTracerPath_);
|
||||
});
|
||||
mipsTracer.set_logging_path(value);
|
||||
MIPSTracerPath_ = value;
|
||||
MIPSTracerPath->SetRightText(MIPSTracerPath_);
|
||||
}
|
||||
);
|
||||
|
||||
return UI::EVENT_DONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user