Implement export: snapgenshin and cocogoat

This commit is contained in:
HolographicHat
2022-06-15 14:28:08 +08:00
parent 34afe3b7a4
commit 74473a3811
4 changed files with 113 additions and 22 deletions

View File

@@ -5,18 +5,19 @@ using YaeAchievement;
using static YaeAchievement.Utils;
Console.WriteLine("----------------------------------------------------");
Console.WriteLine("YaeAchievement - 原神成就导出工具");
Console.WriteLine($"YaeAchievement - 原神成就导出工具 ({GlobalVars.AppVersionName})");
Console.WriteLine("https://github.com/HolographicHat/YaeAchievement");
Console.WriteLine("----------------------------------------------------");
/*InstallExitHook();
InstallExitHook();
InstallExceptionHook();
CheckGenshinIsRunning();
LoadConfig();
CheckUpdate();*/
CheckUpdate();
TryDisableQuickEdit();
//Console.WriteLine(c.Send(msg).StatusCode);
//using var o = File.OpenWrite("ai");
//AchievementInfo.Parser.ParseJson(File.ReadAllText(@"C:\Users\holog\Desktop\cc.json")).WriteTo(o);
//CopyToClipboard("test");
StartAndWaitResult(@"D:\Genshin Impact Dev\2.8\YuanShen.exe", str => {
GlobalVars.UnexpectedExit = false;
var list = AchievementAllDataNotify.Parser.ParseFrom(Convert.FromBase64String(str));