BreakpointManager: Safer and simpler updates.

This commit is contained in:
Henrik Rydgård committed 2025-03-03 13:59:42 +01:00
1 parent d6d1b5bbdc
commit 4989ec61d9
7 files changed
+44 -67

No files matched your search

+1
View File
@@ -370,6 +370,7 @@ namespace MainWindow {
static void UmdSwitchAction(RequesterToken token) {
auto mm = GetI18NCategory(I18NCat::MAINMENU);
System_BrowseForFile(token, mm->T("Switch UMD"), BrowseFileType::BOOTABLE, [](const std::string &value, int) {
// This is safe because the callback runs on the emu thread.
__UmdReplace(Path(value));
});
}