Skip to content

Commit 20778a4

Browse files
authored
Merge pull request #3 from EntityReborn/master
Add support for MelonLoader 0.5.3.
2 parents 25fe8e4 + a91e965 commit 20778a4

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

AstralBypass.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System;
33
using System.Reflection;
44

5-
[assembly: MelonInfo(typeof(Astrum.AstralBypass), nameof(Astrum.AstralBypass), "0.1.3", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralBypass))]
5+
[assembly: MelonInfo(typeof(Astrum.AstralBypass), nameof(Astrum.AstralBypass), "0.1.4", downloadLink: "github.com/Astrum-Project/" + nameof(Astrum.AstralBypass))]
66
[assembly: MelonColor(ConsoleColor.DarkMagenta)]
77

88
namespace Astrum

IntegrityChecks.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,21 @@ static IntegrityChecks()
7272
"48 8B 4C 24 60" + // mov rcx,qword ptr ss:[rsp+60]
7373
"48 89 4C 24 28", // mov qword ptr ss:[rsp+28],rcx
7474
32
75+
),
76+
["0.5.3"] = (
77+
"FF 15 FA 42 02 00" + // call qword ptr ds:[< &mono_image_close >]
78+
"48 8B 1D ?? ?? ?? ??" + // mov rbx, qword ptr ds:[<&mono_raise_exception>]
79+
"48 8B 05 ?? ?? ?? ??" + // mov rax, qword ptr ds:[<&mono_get_exception_bad_image_format>]
80+
"48 8D 0D ?? ?? ?? ??" + // lea rcx, qword ptr ds:[7FF98C013150]
81+
"FF D0" + // call rax
82+
"48 8B C8" + // mov rcx, rax
83+
"FF D3" + // call rbx
84+
"48 8B 05 ?? ?? ?? ??" + // mov rax, qword ptr ds:[7FF98C01CD48]
85+
"48 8B 4C 24 58" + // mov rcx, qword ptr ss:[rsp+58]
86+
"48 89 4C 24 30" + // mov qword ptr ss:[rsp+30],rcx
87+
"48 8B 4C 24 60" + // mov rcx, qword ptr ss:[rsp+60]
88+
"48 89 4C 24 28", // mov qword ptr ss:[rsp+28],rcx
89+
32
7590
)
7691
};
7792

0 commit comments

Comments
 (0)