public static void OpenRom(string path)
        {
            var ioa = OpenAdvancedSerializer.ParseWithLegacy(path);

            GlobalWin.MainForm.LoadRom(path, new MainForm.LoadRomArgs {
                OpenAdvanced = ioa
            });
        }
Example #2
0
        public static void OpenRom(string path)
        {
            var    ioa = OpenAdvancedSerializer.ParseWithLegacy(path);
            Type   t   = ClientAssembly.GetType("BizHawk.Client.EmuHawk.GlobalWin.MainForm.LoadRomArgs");
            object o   = Activator.CreateInstance(t);

            t.GetField("OpenAdvanced").SetValue(o, ioa);

            InvokeMainFormMethod("LoadRom", new[] { path, o });
        }