Lua - implement mainmemory.getname()

This commit is contained in:
adelikat 2013-10-08 23:24:56 +00:00
parent 88d29148f9
commit 634a465c06
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -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);