refactor CacheFile

This commit is contained in:
HolographicHat
2025-04-09 01:09:47 +08:00
parent 4ff2b454f3
commit 4b052cf6c7
9 changed files with 76 additions and 118 deletions

View File

@@ -2,6 +2,7 @@
using System.Text.Json.Serialization;
using Google.Protobuf;
using YaeAchievement.res;
using YaeAchievement.Utilities;
namespace YaeAchievement.Parsers;
@@ -30,7 +31,7 @@ public class AchievementAllDataNotify {
public static bool OnReceive(BinaryReader reader) {
var bytes = reader.ReadBytes(reader.ReadInt32());
GlobalVars.AchievementDataCache.Write(bytes);
CacheFile.Write("achievement_data", bytes);
Instance = ParseFrom(bytes);
return true;
}