snap.hutao

This commit is contained in:
HolographicHat
2022-09-27 16:58:46 +08:00
parent d84571ba1c
commit 9aaefe4cd7
7 changed files with 9 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
- 支持导出所有类别的成就
- 支持官服,渠道服与国际服
- 支持导出至[椰羊](https://cocogoat.work/achievement)、[SnapGenshin](https://github.com/DGP-Studio/Snap.Genshin)、[Paimon.moe](https://paimon.moe/achievement/)、[Seelie.me](https://seelie.me/achievements)、[寻空](https://github.com/xunkong/xunkong)和表格文件(csv)
- 支持导出至[椰羊](https://cocogoat.work/achievement)、[Snap·HuTao](https://github.com/DGP-Studio/Snap.HuTao)、[Paimon.moe](https://paimon.moe/achievement/)、[Seelie.me](https://seelie.me/achievements)、[寻空](https://github.com/xunkong/xunkong)和表格文件(csv)
- 没有窗口大小、游戏语言等要求
## 使用说明

View File

@@ -13,7 +13,7 @@
- Support for exporting all categories of achievements
- Supports all versions of Genshin Impact
- Support for exporting to [Cocogoat](https://cocogoat.work/achievement), [SnapGenshin](https://github.com/DGP-Studio/Snap.Genshin), [Paimon.moe](https://paimon.moe/achievement/), [Seelie.me](https://seelie.me/achievements)、[XunKong](https://github.com/xunkong/xunkong) and form files (csv)
- Support for exporting to [Cocogoat](https://cocogoat.work/achievement), [Snap·HuTao](https://github.com/DGP-Studio/Snap.HuTao), [Paimon.moe](https://paimon.moe/achievement/), [Seelie.me](https://seelie.me/achievements)、[XunKong](https://github.com/xunkong/xunkong) and form files (csv)
- There are no requirements for window size, game language, etc.
## How to use:

2
res/App.Designer.cs generated
View File

@@ -116,7 +116,7 @@ namespace YaeAchievement.res {
/// <summary>
/// Looks up a localized string similar to Export to:
///[0] Cocogoat (https://cocogoat.work/achievement, Default)
///[1] SnapGenshin
///[1] Snap.HuTao
///[2] Paimon.moe
///[3] Seelie.me
///[4] Csv file

View File

@@ -27,7 +27,7 @@
<data name="ExportChoose" xml:space="preserve">
<value>Export to:
[0] Cocogoat (https://cocogoat.work/achievement, Default)
[1] SnapGenshin
[1] Snap.HuTao
[2] Paimon.moe
[3] Seelie.me
[4] Csv file

View File

@@ -20,7 +20,7 @@
<data name="ExportChoose" xml:space="preserve">
<value>导出至:
[0] 椰羊 (https://cocogoat.work/achievement, 默认)
[1] SnapGenshin
[1] Snap.HuTao
[2] Paimon.moe
[3] Seelie.me
[4] 表格文件

View File

@@ -30,7 +30,7 @@ public class CacheFile {
public void Write(byte[] data, string? etag = null) => Write(ByteString.CopyFrom(data), data.MD5Hash(), etag);
private void Write(ByteString data, string hash, string? etag = null) {
private void Write(ByteString data, string hash, string? etag) {
using var fOut = File.OpenWrite(_cacheName);
using var cOut = new GZipStream(fOut, CompressionLevel.SmallestSize);
new CacheItem {

View File

@@ -17,7 +17,7 @@ public static class Export {
}
if (!int.TryParse(Console.ReadLine(), out var num)) num = 0;
((Action<AchievementAllDataNotify>) (num switch {
1 => ToSnapGenshin,
1 => ToHuTao,
2 => ToPaimon,
3 => ToSeelie,
4 => ToCSV,
@@ -66,8 +66,9 @@ public static class Export {
Console.WriteLine(App.ExportToWxApp1Success, id);
}
private static void ToSnapGenshin(AchievementAllDataNotify data) {
private static void ToHuTao(AchievementAllDataNotify data) {
Utils.CopyToClipboard(JsonSerializer.Serialize(ExportToUIAFApp(data)));
Utils.ShellOpen("hutao://achievement/import");
Console.WriteLine(App.ExportToSnapGenshinSuccess);
}