tastudio: insure against all sorts of silent corruption.

This commit is contained in:
feos 2016-08-02 20:05:31 +03:00
parent 92bcca8b7d
commit e362ecdbbf
1 changed files with 4 additions and 0 deletions

View File

@ -894,6 +894,10 @@ namespace BizHawk.Client.EmuHawk
{
get
{
// prevent nasty silent corruption
if (!GlobalWin.Tools.IsLoaded<TAStudio>())
System.Diagnostics.Debug.Fail("TAStudio does not exist!");
var tool = _tools.FirstOrDefault(x => x is TAStudio);
if (tool != null)
{