Lua: fix client.openrom

This commit is contained in:
Masterjun 2018-03-01 01:06:15 +01:00
parent 0fe703c9b7
commit 605ca5816a
1 changed files with 2 additions and 1 deletions

View File

@ -189,7 +189,8 @@ namespace BizHawk.Client.EmuHawk
[LuaMethod("openrom", "opens the Open ROM dialog")]
public static void OpenRom(string path)
{
GlobalWin.MainForm.LoadRom(path, new MainForm.LoadRomArgs { OpenAdvanced = new OpenAdvanced_OpenRom() });
var ioa = OpenAdvancedSerializer.ParseWithLegacy(path);
GlobalWin.MainForm.LoadRom(path, new MainForm.LoadRomArgs { OpenAdvanced = ioa });
}
[LuaMethod("opentasstudio", "opens the TAStudio dialog")]