Lua - implement mainmemory.getname()
This commit is contained in:
parent
88d29148f9
commit
634a465c06
|
@ -422,7 +422,9 @@
|
|||
<Compile Include="tools\HexEditor\HexFind.Designer.cs">
|
||||
<DependentUpon>HexFind.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="tools\HexEditor\MemoryViewer.cs" />
|
||||
<Compile Include="tools\HexEditor\MemoryViewer.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="tools\Lua\LuaButton.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
|
|
|
@ -178,6 +178,7 @@ namespace BizHawk.MultiClient
|
|||
|
||||
public static string[] MainMemoryFunctions = new[]
|
||||
{
|
||||
"getname",
|
||||
"readbyte",
|
||||
"readbyterange",
|
||||
"readfloat",
|
||||
|
@ -2366,6 +2367,11 @@ namespace BizHawk.MultiClient
|
|||
|
||||
#endregion
|
||||
|
||||
public string mainmemory_getname()
|
||||
{
|
||||
return Global.Emulator.MainMemory.Name;
|
||||
}
|
||||
|
||||
public uint mainmemory_readbyte(object lua_addr)
|
||||
{
|
||||
int addr = LuaInt(lua_addr);
|
||||
|
|
Loading…
Reference in New Issue