implement appcenter and minor fix

This commit is contained in:
HolographicHat
2022-07-03 14:06:41 +08:00
parent 468b4b91ea
commit fb8c941b57
27 changed files with 817 additions and 23 deletions

View File

@@ -1,7 +1,10 @@
using YaeAchievement;
using YaeAchievement.AppCenterSDK;
using YaeAchievement.AppCenterSDK.Models;
using static YaeAchievement.Utils;
InstallExitHook();
CheckSelfIsRunning();
TryDisableQuickEdit();
InstallExceptionHook();
CheckGenshinIsRunning();
@@ -13,6 +16,13 @@ Console.WriteLine("----------------------------------------------------");
LoadConfig();
CheckUpdate();
AppCenter.Init();
new EventLog("AppInit") {
Properties = {
{ "AppVersion", GlobalVars.AppVersionName },
{ "SystemVersion", DeviceHelper.GetSystemVersion() }
}
}.Enqueue();
StartAndWaitResult(GlobalVars.GamePath, str => {
GlobalVars.UnexpectedExit = false;
var list = AchievementAllDataNotify.Parser.ParseFrom(Convert.FromBase64String(str));