This commit is contained in:
adelikat 2019-12-15 11:52:55 -06:00
parent a5d7c98daf
commit 9676fd97df
1 changed files with 17 additions and 17 deletions

View File

@ -240,23 +240,6 @@ namespace BizHawk.Client.Common
return Guid.Empty.ToString();
}
private string ProcessScope(string scope)
{
if (string.IsNullOrWhiteSpace(scope))
{
if (Domains != null && Domains.HasSystemBus)
{
scope = Domains.SystemBus.Name;
}
else
{
scope = DebuggableCore.MemoryCallbacks.AvailableScopes.First();
}
}
return scope;
}
[LuaMethodExample("local steveonm = event.onmemoryread(\r\n\tfunction()\r\n\t\tconsole.log( \"Fires after the given address is read by the core. If no address is given, it will attach to every memory read\" );\r\n\tend\r\n\t, 0x200, \"Frame name\" );")]
[LuaMethod("onmemoryread", "Fires after the given address is read by the core. If no address is given, it will attach to every memory read")]
public string OnMemoryRead(LuaFunction luaf, uint? address = null, string name = null, string scope = null)
@ -350,5 +333,22 @@ namespace BizHawk.Client.Common
return false;
}
private string ProcessScope(string scope)
{
if (string.IsNullOrWhiteSpace(scope))
{
if (Domains != null && Domains.HasSystemBus)
{
scope = Domains.SystemBus.Name;
}
else
{
scope = DebuggableCore.MemoryCallbacks.AvailableScopes.First();
}
}
return scope;
}
}
}