From 9676fd97dff3e9834e7748208026f600e80e9379 Mon Sep 17 00:00:00 2001 From: adelikat Date: Sun, 15 Dec 2019 11:52:55 -0600 Subject: [PATCH] cleanup --- .../lua/EmuLuaLibrary.Events.cs | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs index 198c75e9e6..137a527776 100644 --- a/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs +++ b/BizHawk.Client.Common/lua/EmuLuaLibrary.Events.cs @@ -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; + } } }