Remove useless yield methods from `IEmulationApi`
This commit is contained in:
parent
5f3199acf3
commit
64505fd23e
|
@ -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 ?? "";
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue