You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(lastReqAddr>=d.Size)LogCallback($"Warning: Attempted reads on addresses {d.Size}..{lastReqAddr} outside range of domain {d.Name} in {nameof(ReadByteRange)}()");
Copy file name to clipboardExpand all lines: src/BizHawk.Client.Common/lua/CommonLibs/MemoryLuaLibrary.cs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
usingSystem;
2
+
usingSystem.Collections.Generic;
2
3
usingSystem.ComponentModel;
3
4
usingSystem.Linq;
4
5
@@ -19,7 +20,7 @@ public MemoryLuaLibrary(IPlatformLuaLibEnv luaLibsImpl, ApiContainer apiContaine
19
20
[LuaMethod("getmemorydomainlist","Returns a string of the memory domains for the loaded platform core. List will be a single string delimited by line feeds")]
=>_th.ListToTable((List<string>)APIs.Memory.GetMemoryDomainList(),indexFrom:0);//HACK cast will succeed as long as impl. returns .Select<T, string>().ToList() as IROC<string>
[LuaMethod("getmemorydomainsize","Returns the number of bytes of the specified memory domain. If no domain is specified, or the specified domain doesn't exist, returns the current domain size")]
0 commit comments