Add confirmation modal when launching TAStudio during casual play
This commit is contained in:
parent
52715383c5
commit
97e030fcb8
|
@ -1242,7 +1242,12 @@ namespace BizHawk.Client.EmuHawk
|
||||||
ShowMessageBox(owner: null, "Current core does not support input polling. TAStudio can't be used.");
|
ShowMessageBox(owner: null, "Current core does not support input polling. TAStudio can't be used.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
const int DONT_PROMPT_BEFORE_FRAME = 2 * 60 * 60; // 2 min @ 60 fps
|
||||||
|
if (!MovieSession.Movie.IsActive() && Emulator.Frame > DONT_PROMPT_BEFORE_FRAME // if playing casually (not recording) AND played for enough frames (prompting always would be annoying)...
|
||||||
|
&& !this.ModalMessageBox2("This will reload the rom without saving. Launch TAStudio anyway?", "Confirmation")) // ...AND user responds "No" to "Open TAStudio?", then cancel
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
Tools.Load<TAStudio>();
|
Tools.Load<TAStudio>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -346,7 +346,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "TAStudio":
|
case "TAStudio":
|
||||||
Tools.Load<TAStudio>();
|
TAStudioMenuItem_Click(null, null);
|
||||||
break;
|
break;
|
||||||
case "ToolBox":
|
case "ToolBox":
|
||||||
Tools.Load<ToolBox>();
|
Tools.Load<ToolBox>();
|
||||||
|
|
Loading…
Reference in New Issue