HearthBuddy DONOTDELETE.bin
namespace Hearthbuddy
{
// Token: 0x02000022 RID: 34
public class App : System.Windows.Application
// Hearthbuddy.App
// Token: 0x0600012B RID: 299 RVA: 0x00086C08 File Offset: 0x00084E08
protected override void OnStartup(StartupEventArgs e)
{
string text = "";
try
{
this.method_1();
}
catch (Exception exception)
{
App.ilog_0.Error("An exception occurred", exception);
try
{
this.method_2();
}
catch (Exception exception2)
{
App.ilog_0.Error("An exception occurred", exception2);
Logger.OpenLogFile();
Application.Current.Shutdown();
return;
}
}
try
{
App.ilog_0.Info("Now setting up JitProfiles...");
string text2 = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "JitProfiles");
if (!Directory.Exists(text2))
{
Directory.CreateDirectory(text2);
}
ProfileOptimization.SetProfileRoot(text2);
ProfileOptimization.StartProfile("JitProfile.jpf");
App.ilog_0.Info("JitProfiles successfully setup!");
}
catch (Exception exception3)
{
App.ilog_0.Error("An exception occurred", exception3);
}
base.Dispatcher.UnhandledException += this.method_4;
AppDomain.CurrentDomain.UnhandledException += this.method_3;
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
App.ilog_0.Info("Now beginning pre-start tasks.");
try
{
App.ilog_0.Info("Now checking prerequisites...");
this.method_0();
App.ilog_0.Info("Prerequisite check complete!");
}
catch (Exception arg)
{
App.ilog_0.ErrorFormat("{0}", arg);
Logger.OpenLogFile();
base.Shutdown();
return;
}
try
{
if (!File.Exists("DONOTDELETE.bin"))
{
App.ilog_0.Error("The file [DONOTDELETE.bin] does not exist. Please reinstall Hearthbuddy.");
Logger.OpenLogFile();
base.Shutdown();
return;
}
if (!Class7.smethod_4(out text))
{
App.ilog_0.Error("GetImageFileName failed.");
Logger.OpenLogFile();
base.Shutdown();
return;
}
if (new Uri(text).IsUnc)
{
App.ilog_0.Error("Hearthbuddy can no longer be ran from an UNC path. Please install Hearthbuddy to the current PC.");
Logger.OpenLogFile();
base.Shutdown();
return;
}
File.ReadAllBytes(text);
File.ReadAllBytes("DONOTDELETE.bin");
App.smethod_0(text);
}
catch (Exception arg2)
{
App.ilog_0.ErrorFormat("{0}", arg2);
Logger.OpenLogFile();
base.Shutdown();
return;
}
try
{
Class6 @class = new Class7().method_0("Hearthbuddy");
switch (@class.Enum1_0)
{
case Enum1.Success:
CodeCompiler.smethod_0(@class.String_0);
break;
case Enum1.Relaunch:
if (CommandLine.Arguments.Exists("noautolaunch"))
{
App.ilog_0.Info("Now exiting for manual relaunch.");
base.Shutdown();
}
else
{
App.ilog_0.Info("Now relaunching.");
Process.Start(@class.String_1, string.Join(" ", Environment.GetCommandLineArgs().Skip().Select(new Func<string, string>(App.Class11.Instance9.method_1))));
base.Shutdown();
}
return;
case Enum1.Error:
App.ilog_0.ErrorFormat("An error was encountered: {0}", @class.String_2);
Logger.OpenLogFile();
base.Shutdown();
return;
}
}
catch (Exception arg3)
{
App.ilog_0.ErrorFormat("Could not rename ourself on startup: {0}", arg3);
Logger.OpenLogFile();
base.Shutdown();
return;
}
try
{
if (!App.smethod_1(text))
{
App.ilog_0.ErrorFormat("An error occurred while trying to replace the process.", Array.Empty<object>());
Logger.OpenLogFile();
base.Shutdown();
return;
}
}
catch (Exception arg4)
{
App.ilog_0.ErrorFormat("Could not replace ourself on startup: {0}", arg4);
Logger.OpenLogFile();
base.Shutdown();
return;
}
App.ilog_0.Info("Pre-start tasks successfully completed.");
base.OnStartup(e);
}
HearthBuddy DONOTDELETE.bin的更多相关文章
- HearthBuddy炉石兄弟 如何调试ai
Sepefeets's update to botmaker's Silverfish AI This AI is a Custom Class for Hearthranger and Hearth ...
- HearthBuddy CSharpCodeProvider 如何编译cs文件
源码 源码1 namespace Hearthbuddy.Windows{ // Token: 0x02000041 RID: 65 public class MainWindow : W ...
- MySQL Workbench建表时 PK NN UQ BIN UN ZF AI 的含义
[转自网络]https://my.oschina.net/cers/blog/292191 PK Belongs to primary key 作为主键 NN Not Null 非空 UQ Uniqu ...
- "Installation failed !" in GUI but not in CLI (/usr/bin/winusb: line 78: 18265 Terminated )
"Installation failed !" in GUI but not in CLI (/usr/bin/winusb: line 78: 18265 Terminated ...
- 在cygwin部署hadoop出现的问题:$ ./bin/hadoop version 显示错误: 找不到或无法加载主类 org.apache.hadoop.util.VersionInfo
解决方案 找到hadoop主目录的bin文件夹下的hadoop文件,将倒数第二行 exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS $CLASS & ...
- 远程ssh登陆时报错:/bin/bash: Permission denied
远程普通用户ssh登录时,提示/bin/bash: Permission denied,用户名mas,密码正确. 首先上个图,用户远程登录步骤,转自http://www.tldp.org/LDP/LG ...
- 让Git忽略所有obj和bin目录的同步
DotNet的项目里,编译出来的二进制文件默认都是放在每个项目对应的bin和obj目录下,有时候开发人员会不小心把这些目录的文件错误的提交到Git服务器.Git里的忽略文件功能可以通过一个.gitig ...
- /usr/bin/ld.bfd.real: cannot find -lGL /usr/bin/ld.bfd.real: cannot find -lX11
/usr/bin/ld.bfd.real: cannot find -lGL /usr/bin/ld.bfd.real: cannot find -lX11 根据网上大多数的说法,以及官网的介绍.截至 ...
- java调用sqlldr oracle 安装的bin目录
package com.jyc.sqlldr; import java.io.BufferedReader;import java.io.InputStream;import java.io.Inpu ...
随机推荐
- DVA-subscriptions
import { routerRedux } from 'dva/router' export default { namespace: 'notice', state: { notices:[], ...
- docker 第五篇 存储
镜像概述复习 Docker镜像由多个只读层叠加而成,启动容器时,Docker会加载只读镜像层并在镜像栈顶部添加一个读写层 如果运行中的容器修改了现有的一个已经存在的文件,那改文件将会从读写层下面的只读 ...
- 好好讲一讲,到底什么是Java高级架构师!
一. 什么是架构师 曾经有这么个段子: 甲:我已经应聘到一家中型软件公司了,今天上班的时候,全公司的人都来欢迎我. 乙:羡慕ing,都什么人来了? 甲:CEO.COO.CTO.All of 程序员,还 ...
- 第一章 Django之web框架(1)
Django 是新一代 Web 框架 中非常出色的成员.那么 Web 框架这个术语的确切含义到底是 什么呢? 要回答这个问题,让我们来看看通过编写标准的 CGI 程序来开发 Web 应用,这在大约19 ...
- web开发:动画及阴影
一.小米拼接 二.过渡动画 三.过度案例 四.盒子阴影 五.伪类设计边框 一.小米拼接 将区域整体划分起名 => 对其他区域布局不产生影响提出公共css => reset操作当有区域发送显 ...
- Python 内置函数进制转换的用法(十进制转二进制、八进制、十六进制)
↓ 2进制 8进制 10进制 16进制 2进制 - bin(int(x, 8)) bin(int(x, 10)) bin(int(x, 16)) 8进制 oct(int(x, 2)) - oct(in ...
- Python&Selenium 数据驱动【unittest+ddt】
一.摘要 本博文将介绍Python和Selenium做自动化测试的时候,基于unittest框架,借助ddt实现数据驱动 二.测试代码 # encoding = utf-8 ""& ...
- luogu3651 展翅翱翔之时 (はばたきのとき)[基环树+贪心]
考前随便做点水题愉♂悦身心 有助于退役 这题意思其实就是说要把外向基环树森林改成一个环的最小代价. 依照套路,先对每棵基环树的树做dp,这里因为要是环,要把所有的树都拆成链,然后连接.所以考虑以最小代 ...
- Elasticsearch:search template
我们发现一些用户经常编写了一些非常冗长和复杂的查询 - 在很多情况下,相同的查询会一遍又一遍地执行,但是会有一些不同的值作为参数来查询.在这种情况下,我们觉得使用一个search template(搜 ...
- 使用EntityFramework6连接MySql数据库-db first方式
准备工具: VS2013.MySQL For VisualStudio 1.1.4.Connector/Net 6.8.3 程序包管理器执行命令: Install-Package EntityFram ...