BizHawk is a multi-system emulator written in C#. BizHawk provides nice features for casual gamers such as full screen, and joypad support in addition to full rerecording and debugging tools for all system cores.
I noticed that trying to open TAStudio when cheats are active can lead to an exception, and I assume TAStudio is in a bad state afterwards:
Open any rom and activate any cheat
Open TAStudio
In the Cheats warning dialog, click Cancel
Doing the above steps should stop TAStudio from loading. In reality the following exception will be thrown:
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei BizHawk.Client.EmuHawk.TAStudio.SetSplicer() in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\tools\TAStudio\TAStudio.cs:Zeile 935.
bei BizHawk.Client.EmuHawk.TAStudio.TasView_SelectedIndexChanged(Object sender, EventArgs e) in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\tools\TAStudio\TAStudio.ListView.cs:Zeile 1189.
bei BizHawk.Client.EmuHawk.InputRoll.DeselectAll() in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\CustomControls\InputRoll\InputRoll.cs:Zeile 607.
bei BizHawk.Client.EmuHawk.TAStudio.StartNewTasMovie() in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\tools\TAStudio\TAStudio.cs:Zeile 525.
bei BizHawk.Client.EmuHawk.TAStudio.Engage() in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\tools\TAStudio\TAStudio.cs:Zeile 271.
bei BizHawk.Client.EmuHawk.TAStudio.Tastudio_Load(Object sender, EventArgs e) in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\tools\TAStudio\TAStudio.cs:Zeile 165.
bei System.Windows.Forms.Form.OnLoad(EventArgs e)
bei BizHawk.Client.EmuHawk.FormBase.OnLoad(EventArgs e) in D:\GitHub\BizHawk\src\BizHawk.Client.EmuHawk\FormBase.cs:Zeile 70.
Ignoring the actual exception, this is caused by TAStudio ignoring the return value of the StartNewMovieWrapper function, presumably expecting it to always succeed.
Fixing this properly and in all places might be difficult, but at the very least the opening case should be handled and not throw any exceptions.
Summary
I noticed that trying to open TAStudio when cheats are active can lead to an exception, and I assume TAStudio is in a bad state afterwards:
Cheats warning
dialog, clickCancel
Doing the above steps should stop TAStudio from loading. In reality the following exception will be thrown:
Ignoring the actual exception, this is caused by TAStudio ignoring the return value of the
StartNewMovieWrapper
function, presumably expecting it to always succeed.Fixing this properly and in all places might be difficult, but at the very least the opening case should be handled and not throw any exceptions.
Host env.