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 bool ForbiddenConfigReferenceUsed { get; private set; }
|
||||||
|
|
||||||
public Action YieldCallback { get; set; }
|
|
||||||
|
|
||||||
public EmulationApi(Action<string> logCallback, Config config, IGameInfo game)
|
public EmulationApi(Action<string> logCallback, Config config, IGameInfo game)
|
||||||
{
|
{
|
||||||
_config = config;
|
_config = config;
|
||||||
|
@ -71,8 +67,6 @@ namespace BizHawk.Client.Common
|
||||||
|
|
||||||
public void DisplayVsync(bool enabled) => _config.VSync = enabled;
|
public void DisplayVsync(bool enabled) => _config.VSync = enabled;
|
||||||
|
|
||||||
public void FrameAdvance() => FrameAdvanceCallback();
|
|
||||||
|
|
||||||
public int FrameCount() => Emulator.Frame;
|
public int FrameCount() => Emulator.Frame;
|
||||||
|
|
||||||
public object Disassemble(uint pc, string name = "")
|
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 MinimizeFrameskip(bool enabled) => _config.AutoMinimizeSkipping = enabled;
|
||||||
|
|
||||||
public void Yield() => YieldCallback();
|
|
||||||
|
|
||||||
public string GetDisplayType() => (RegionableCore?.Region)?.ToString() ?? "";
|
public string GetDisplayType() => (RegionableCore?.Region)?.ToString() ?? "";
|
||||||
|
|
||||||
public string GetBoardName() => BoardInfo?.BoardName ?? "";
|
public string GetBoardName() => BoardInfo?.BoardName ?? "";
|
||||||
|
|
|
@ -1,15 +1,12 @@
|
||||||
using System;
|
using System.Collections.Generic;
|
||||||
using System.Collections.Generic;
|
|
||||||
using BizHawk.Emulation.Common;
|
using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
namespace BizHawk.Client.Common
|
namespace BizHawk.Client.Common
|
||||||
{
|
{
|
||||||
public interface IEmulationApi : IExternalApi
|
public interface IEmulationApi : IExternalApi
|
||||||
{
|
{
|
||||||
Action FrameAdvanceCallback { get; set; }
|
|
||||||
Action YieldCallback { get; set; }
|
|
||||||
void DisplayVsync(bool enabled);
|
void DisplayVsync(bool enabled);
|
||||||
void FrameAdvance();
|
|
||||||
int FrameCount();
|
int FrameCount();
|
||||||
object Disassemble(uint pc, string name = "");
|
object Disassemble(uint pc, string name = "");
|
||||||
ulong? GetRegister(string name);
|
ulong? GetRegister(string name);
|
||||||
|
@ -23,7 +20,6 @@ namespace BizHawk.Client.Common
|
||||||
void SetLagCount(int count);
|
void SetLagCount(int count);
|
||||||
void LimitFramerate(bool enabled);
|
void LimitFramerate(bool enabled);
|
||||||
void MinimizeFrameskip(bool enabled);
|
void MinimizeFrameskip(bool enabled);
|
||||||
void Yield();
|
|
||||||
string GetDisplayType();
|
string GetDisplayType();
|
||||||
string GetBoardName();
|
string GetBoardName();
|
||||||
object GetSettings();
|
object GetSettings();
|
||||||
|
|
Loading…
Reference in New Issue