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 ...
随机推荐
- angularJs同步请求
今天在写几级联动的时候,因为比如上一个接口请求数据成功返回后,才能根据上一个接口返回的数据请求下一个接口,以此类推:因此有了同步请求的想法. 在前端做同步读取显然不是好的实践做法,同步之后会严重影响前 ...
- 安卓开发之sql语句增删改查
package com.lidaochen.phonecall; import android.content.Context; import android.database.sqlite.SQLi ...
- java引用传递,值传递
2个interger的引用对象传给一个swap方法在方法内部进行交换 1.1 java中方法参数传值方式 java中方法传参数都是值传递的,只不过根据参数的类型是引用类型还是非引用类型 引用类型传递的 ...
- 7.使用EXPLAIN 来分析SQL和表结构_1
explain:查看执行计划 使用explain 关键字可以模拟优化器执行SQL查询语句,从而知道MySQL是如何处理你的SQL语句的 分析你的查询语句或是表结构的性能瓶颈 使用explain 可以获 ...
- 根治android studio无法预览xml布局的问题
xml报错“Failed to load AppCompat ActionBar with unknown error.” 修改build-gradle文件中的appcompat包导入的版本,直接用“ ...
- C# Winfrom GDI+ 自定义控件
using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; u ...
- kotlin变量基础
kotlin变量与输出 这里看一下在Kotlin中的变量是如何定义的? 编译运行: 对比下我们常用的JAVA语言,定义上的区别: 1.Kotlin变量是统一以var开头,而不区分具体类型,而Java在 ...
- python批量下载邮件附件
背景 由于同学每周要通过邮箱收数学建模作业,100多人给她发附件,她要一个个地点着下载. 太麻烦了,所以想用程序实现下载附件的功能. 在网上查资料后,最终实现了稍为简单的下载附件功能,代码有些细节还不 ...
- setup elk with docker-compose
version: '2' services: elasticsearch: image: docker.calix.local:18080/docker-elasticsearch:6.2.2-1 c ...
- Mybatis中运用小技巧 trim标签的使用
作者:death05的博客推荐:路在脚下trim元素的主要功能是可以在自己包含的内容钱加上某些前缀,也可以在其后加上某写后缀,与之对应的属性是prefix和suffix: 可以把包含内容的首部某些内容 ...