diff --git a/lib/src/il2cpp-functions.h b/lib/src/il2cpp-functions.h index 8455bf9..2b22277 100644 --- a/lib/src/il2cpp-functions.h +++ b/lib/src/il2cpp-functions.h @@ -2,16 +2,16 @@ using namespace Genshin; // DO_APP_FUNC(CN_OFFSET, OS_OFFSET, RETURN, FUNC_NAME, (ARGS...)); -DO_APP_FUNC(0x4F1EF0, 0x545600, LPVOID, il2cpp_object_new, (LPVOID t)); +DO_APP_FUNC(0x504620, 0x5C3140, LPVOID, il2cpp_object_new, (LPVOID t)); -DO_APP_FUNC(0x052818B0, 0x0529E520, ByteArray*, RecordUserData, (int32_t nType)); +DO_APP_FUNC(0x05167E00, 0x05166410, ByteArray*, RecordUserData, (int32_t nType)); -DO_APP_FUNC(0x05DCBE60, 0x05DF2F40, void, OnAchievementAllDataNotify, (LPVOID obj, LPVOID ntf)); +DO_APP_FUNC(0x04450D40, 0x0444F3B0, void, OnAchievementAllDataNotify, (LPVOID obj, LPVOID ntf)); -DO_APP_FUNC(0x043EC0B0, 0x043FA380, int, CalculateSize, (LPVOID obj)); +DO_APP_FUNC(0x07A3EC40, 0x07A3DD10, int, CalculateSize, (LPVOID obj)); -DO_APP_FUNC(0x043EBFF0, 0x043FA2C0, void, ProtoWriteTo, (LPVOID obj, LPVOID output)); +DO_APP_FUNC(0x07A3EB80, 0x07A3DC50, void, ProtoWriteTo, (LPVOID obj, LPVOID output)); -DO_APP_FUNC(0x06F08220, 0x06F3F280, void, CodedOutputStreamInit, (LPVOID obj, LPVOID buffer, int offset, int length)); +DO_APP_FUNC(0x05BFDA50, 0x05BFCCD0, void, CodedOutputStreamInit, (LPVOID obj, LPVOID buffer, int offset, int length)); -DO_UNI_FUNC(0x105970, 0x105970, ByteArray*, UnityEngine_RecordUserData, (int32_t nType)); +DO_UNI_FUNC(0x1051E0, 0x1051E0, ByteArray*, UnityEngine_RecordUserData, (int32_t nType)); diff --git a/lib/src/il2cpp-types-ptr.h b/lib/src/il2cpp-types-ptr.h index 58dcd2b..74a8796 100644 --- a/lib/src/il2cpp-types-ptr.h +++ b/lib/src/il2cpp-types-ptr.h @@ -1,2 +1,2 @@ -// LFGDACFKABF -DO_TYPEDEF(0x2965BA0, 0x2966BA0, CodedOutputStream); +// NOLFKCJKECE +DO_TYPEDEF(0x2A35D58, 0x2A34D58, CodedOutputStream); diff --git a/res/proto/AchievementAllDataNotify.proto b/res/proto/AchievementAllDataNotify.proto index 71a621b..38cfc32 100644 --- a/res/proto/AchievementAllDataNotify.proto +++ b/res/proto/AchievementAllDataNotify.proto @@ -9,13 +9,13 @@ message Achievement { FINISHED = 2; REWARD_TAKEN = 3; } - uint32 timestamp = 11; - uint32 current = 15; + uint32 timestamp = 6; + uint32 current = 12; uint32 total = 3; - uint32 id = 14; - Status status = 8; + uint32 id = 9; + Status status = 11; } message AchievementAllDataNotify { - repeated Achievement list = 9; + repeated Achievement list = 5; } diff --git a/src/GlobalVars.cs b/src/GlobalVars.cs index 015c1f1..8c29658 100644 --- a/src/GlobalVars.cs +++ b/src/GlobalVars.cs @@ -20,8 +20,8 @@ public static class GlobalVars { public static readonly string CachePath = Path.Combine(DataPath, "cache"); public static readonly string LibFilePath = Path.Combine(DataPath, "YaeAchievement.dll"); - public const uint AppVersionCode = 43; - public const string AppVersionName = "3.3"; + public const uint AppVersionCode = 44; + public const string AppVersionName = "3.4"; public const string PipeName = "YaeAchievementPipe"; public const string BucketHost = "https://cn-cd-1259389942.file.myqcloud.com";