[Feature Request] APIHawk: Allow a way for an external tool to always run Update while the game is paused and without frame advancing. #3626
Labels
Enhancement
For feature requests or possible improvements
re: APIHawk
Relating to EmuHawk's public .NET API or to the creation of external tools
Summary
I have written an external tool that requires the use of TAStudio to function. There is a use case where I need to always have the external tool be invoking
IToolFormBase.UpdateAfter()
when the game is paused and when TAStudio is active.Given the following source code snippet here:
BizHawk/src/BizHawk.Client.EmuHawk/MainForm.cs
Lines 3120 to 3121 in 03aa420
When the game is paused,
runFrame
flag will befalse
, andforce
is typicallyfalse
by default. WithrunFrame
andforce
both set tofalse
, EmuHawk will not be able to invoke the methods:Tools.FastUpdateBefore()
Tools.UpdateToolsBefore()
Tools.FastUpdateAfter()
UpdateToolsAfter()
When frame advancing from TAStudio,
force
flag will be set totrue
, and we can invoke any of the 4 methods listed above. But it wouldn't be useful as I have a need to invokeTools.FastUpdateBefore()
,Tools.UpdateToolsBefore()
, andTools.FastUpdateAfter()
while the game is paused and without TAStudio frame-advancing the game.Thus, we currently don't have a solution. I would like to request for a small modification so that there can be an External Tools API method that will always be invoked even when the game is paused. Perhaps something like:
Tools.AlwaysUpdate()
right outside of thatif
statement block. It is an empty method, but it will be useful for external tools to override it, and be able to do things even when the game is paused.Host env.
The text was updated successfully, but these errors were encountered: