Implement export: paimon and csv

This commit is contained in:
HolographicHat
2022-06-15 00:19:23 +08:00
parent f1e8c09262
commit 34afe3b7a4
3 changed files with 133 additions and 9 deletions

View File

@@ -1,19 +1,25 @@
using System.Net;
using System.Net.Http.Headers;
using Google.Protobuf;
using YaeAchievement;
using static YaeAchievement.Utils;
Console.WriteLine("----------------------------------------------------");
Console.WriteLine("YaeAchievement - 原神成就导出工具");
Console.WriteLine("https://github.com/HolographicHat/YaeAchievement");
Console.WriteLine("----------------------------------------------------");
/*InstallExitHook();
InstallExceptionHook();
CheckGenshinIsRunning();
LoadConfig();*/
var ch = GetBucketFileAsString("latest.json");
LoadConfig();
CheckUpdate();*/
TryDisableQuickEdit();
//Console.WriteLine(c.Send(msg).StatusCode);
return;
//using var o = File.OpenWrite("ai");
//AchievementInfo.Parser.ParseJson(File.ReadAllText(@"C:\Users\holog\Desktop\cc.json")).WriteTo(o);
StartAndWaitResult(@"D:\Genshin Impact Dev\2.8\YuanShen.exe", str => {
GlobalVars.UnexpectedExit = false;
//AchievementAllDataNotify.Parser.ParseFrom(Convert.FromBase64String(str)).List;
//var notify = Serializer.Deserialize<AchievementAllDataNotify>(stream)!;
//notify.list;
return false;
var list = AchievementAllDataNotify.Parser.ParseFrom(Convert.FromBase64String(str));
Export.Choose(list);
return true;
});