File tree 2 files changed +11
-0
lines changed
src/BizHawk.Client.EmuHawk
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -881,10 +881,13 @@ public int ProgramRunLoop()
881
881
// autohold/autofire must not be affected by the following inputs
882
882
InputManager . ActiveController . Overrides ( InputManager . ButtonOverrideAdapter ) ;
883
883
884
+ // emu.yield()'ing scripts
884
885
if ( Tools . Has < LuaConsole > ( ) )
885
886
{
886
887
Tools . LuaConsole . ResumeScripts ( false ) ;
887
888
}
889
+ // ext. tools don't yield per se, so just send them a GeneralUpdate
890
+ Tools . GeneralUpdateActiveExtTools ( ) ;
888
891
889
892
StepRunLoop_Core ( ) ;
890
893
Render ( ) ;
Original file line number Diff line number Diff line change @@ -580,6 +580,14 @@ public void UpdateValues<T>() where T : IToolForm
580
580
}
581
581
}
582
582
583
+ public void GeneralUpdateActiveExtTools ( )
584
+ {
585
+ foreach ( var tool in _tools . ToArray ( ) )
586
+ {
587
+ if ( tool is IExternalToolForm { IsActive : true } ) tool . UpdateValues ( ToolFormUpdateType . General ) ;
588
+ }
589
+ }
590
+
583
591
public void Restart ( Config config , IEmulator emulator , IGameInfo game )
584
592
{
585
593
_config = config ;
You can’t perform that action at this time.
0 commit comments