MIPSTracer filepicker fix

This commit is contained in:
Nemoumbra committed 2025-05-31 00:01:34 +03:00
1 parent 61c02466f8
commit 7df52582c6
1 file changed
+11 -5
+11 -5
View File
@@ -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;
}