mirror of
https://github.com/HolographicHat/Yae.git
synced 2026-03-30 00:09:50 +08:00
implement appcenter and minor fix
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user