public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { pluginDirectory = GetPluginDirectory(); foreach (var i in Directory.GetFiles(pluginDirectory)) { if (i.ToLower().Contains("cefsharp")) { File.Delete(i); } } AssemblyResolver = new AssemblyResolver(new List <string>() { pluginDirectory }); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; if (Environment.Is64BitProcess) { Program.CEFDIR = GlobalVar.DIRDICT["CEFX64"]; } else { Program.CEFDIR = GlobalVar.DIRDICT["CEFX86"]; } if (FxLoader.Initialize()) { Initialize(pluginScreenSpace, pluginStatusText); } pluginScreenSpace.Text = $"Aliapoh Overlay {(Environment.Is64BitProcess ? "x64" : "x86")}"; pluginStatusText.Text = "Aliapoh overlay successfully"; }
static void Main() { fromMain = true; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); if (Environment.Is64BitProcess) { CEFDIR = FxLoader.DIRDICT["CEFX64"]; } else { CEFDIR = FxLoader.DIRDICT["CEFX86"]; } FxLoader.Initialize(); }
static void Main() { fromMain = true; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); foreach (var i in Directory.GetFiles(Environment.CurrentDirectory)) { if (i.ToLower().Contains("cefsharp")) { File.Delete(i); } } if (Environment.Is64BitProcess) { CEFDIR = GlobalVar.DIRDICT["CEFX64"]; } else { CEFDIR = GlobalVar.DIRDICT["CEFX86"]; } FxLoader.Initialize(); }
public void InitPlugin(TabPage pluginScreenSpace, Label pluginStatusText) { pluginDirectory = GetPluginDirectory(); AssemblyResolver = new AssemblyResolver(new List <string>() { pluginDirectory }); AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve; if (Environment.Is64BitProcess) { Program.CEFDIR = FxLoader.DIRDICT["CEFX64"]; } else { Program.CEFDIR = FxLoader.DIRDICT["CEFX86"]; } if (FxLoader.Initialize()) { Initialize(pluginScreenSpace, pluginStatusText); } }