Remove useless yield methods from `IEmulationApi`

This commit is contained in:
YoshiRulz 2022-03-01 11:10:12 +10:00
parent 5f3199acf3
commit 64505fd23e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
2 changed files with 2 additions and 14 deletions

View File

@ -56,12 +56,8 @@ namespace BizHawk.Client.Common
}
}
public Action FrameAdvanceCallback { get; set; }
public bool ForbiddenConfigReferenceUsed { get; private set; }
public Action YieldCallback { get; set; }
public EmulationApi(Action<string> logCallback, Config config, IGameInfo game)
{
_config = config;
@ -71,8 +67,6 @@ namespace BizHawk.Client.Common
public void DisplayVsync(bool enabled) => _config.VSync = enabled;
public void FrameAdvance() => FrameAdvanceCallback();
public int FrameCount() => Emulator.Frame;
public object Disassemble(uint pc, string name = "")
@ -184,8 +178,6 @@ namespace BizHawk.Client.Common
public void MinimizeFrameskip(bool enabled) => _config.AutoMinimizeSkipping = enabled;
public void Yield() => YieldCallback();
public string GetDisplayType() => (RegionableCore?.Region)?.ToString() ?? "";
public string GetBoardName() => BoardInfo?.BoardName ?? "";

View File

@ -1,15 +1,12 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using BizHawk.Emulation.Common;
namespace BizHawk.Client.Common
{
public interface IEmulationApi : IExternalApi
{
Action FrameAdvanceCallback { get; set; }
Action YieldCallback { get; set; }
void DisplayVsync(bool enabled);
void FrameAdvance();
int FrameCount();
object Disassemble(uint pc, string name = "");
ulong? GetRegister(string name);
@ -23,7 +20,6 @@ namespace BizHawk.Client.Common
void SetLagCount(int count);
void LimitFramerate(bool enabled);
void MinimizeFrameskip(bool enabled);
void Yield();
string GetDisplayType();
string GetBoardName();
object GetSettings();