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 ...
随机推荐
- Graphics与Canvas
Graphics: 1. java.awt.Graphics;2.android.graphics Canvas:1.java.awt.Canvas;2.android.graphics.Canvas ...
- for in和for of的区别
for in:一般用于遍历普通对象(即没有部署Iterator接口),遍历的是属性. for of:ES6新增的遍历方式,能遍历大部分的类型,遍历的是值.for...of 允许你遍历 Arrays(数 ...
- windows 日志清理和设置
Windows日志路径 c:/windows/system32/winevt/logs 这里的日志文件可以ctrl+a 选中后使用shift+delete进行删除,删不掉的可以点击跳过. 在“管理 ...
- nodejs request module里的json参数的一个坑
今天工作的时候遇到一个坑,在客户端用nodejs给服务器发送HTTP请求,服务器老是报错:In the context of Data Services an unknown internal ser ...
- 【Git】一、安装、配置和仓库创建
之前一直使用图形界面的git,只会一些最常用的操作,并没有说深入学习git的全部功能 开发这么久了,觉得是时候学习一下指令操作,更快捷也更bigger ------------------------ ...
- springboot Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
报错如下: 在请求目标中发现无效字符.有效字符在RFC 7230和RFC 3986中定义. 原因是Tomcat在 7.0.73, 8.0.39, 8.5.7 版本后,添加了对于http头的验证. 就是 ...
- List.ForEach批量新增并发异常解决
批量新增操作在业务系统中十分常见,尤其是主从表中对从表的批量处理.昨天在对wms主从表进行业务操作时使用了c#中list自带的函数ForEach对从表批量新增,代码如下: 在无并发的情况下接口请求正常 ...
- redis,windows设置记录
windows下载 github地址 : https://github.com/MicrosoftArchive/redis/releases #设置内存 redis-server.exe redis ...
- iotop命令详解
iotop是top和iostat程序的混合体,能够显示系统中所有运行进程并将进程根据I/O统计信息排序. 这个软件使用了Linux内核的一些新特性,所以需要2.6.20或者更新的内核. 一般默认情况下 ...
- C语言之const
鱼鹰 鱼鹰谈单片机 2月19日 预计阅读时间: 5 分钟 我们知道,数据分为两种,一种为只读,一种为可读可写,为了防止一些不变的数据被程序意外的修改,有必要对它进行保护.这就是 const 的作用. ...