private void Initailize()
        {
            if (!string.IsNullOrEmpty(PlayerData.Instance.Name))
            {
                return;
            }

            Invoke(() =>
            {
                IActPluginV1 o = null;
                foreach (var x in ActGlobals.oFormActMain.ActPlugins)
                {
                    if (x.pluginFile.Name.ToUpper() == "FFXIV_ACT_Plugin.dll".ToUpper() && x.cbEnabled.Checked)
                    {
                        o = x.pluginObj;
                        if (o != null)
                        {
                            try
                            {
                                var pluginType = o.GetType();

                                o.DeInitPlugin();
                                x.pluginObj = o = null;
                                System.Threading.Thread.Sleep(500);
                                x.tpPluginSpace.Controls.Clear();
                                System.Threading.Thread.Sleep(500);

                                IActPluginV1 main = (IActPluginV1)Activator.CreateInstance(pluginType);

                                main.InitPlugin(x.tpPluginSpace, x.lblPluginStatus);
                                x.pluginObj = o = main;
                            }
                            catch (Exception)
                            {
                            }
                        }
                    }
                }
            });
        }
Example #2
0
 public void DeInitPlugin()
 {
     main.DeInitPlugin();
     asmResolver.Dispose();
 }