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