harden TasView_QueryItemText exception handling

by immediately throwing out the current movie. This should prevent this message box from coming up repeatedly, not providing any additional useful information and just blocking all other windows.

should resolve #2332
This commit is contained in:
Morilli 2025-02-13 16:49:16 +01:00
parent 7568a29912
commit 95cbbecb97
1 changed files with 5 additions and 1 deletions

View File

@ -357,7 +357,11 @@ namespace BizHawk.Client.EmuHawk
catch (Exception ex)
{
text = "";
DialogController.ShowMessageBox($"oops\n{ex}");
DialogController.ShowMessageBox("Encountered unrecoverable error while drawing the input roll.\n" +
"The current movie will be closed without saving.\n" +
$"The exception was:\n\n{ex}", caption: "Failed to draw input roll");
TastudioStopMovie();
StartNewTasMovie();
}
}