Skip to content

Commit

Permalink
Supported Unity 2020.3.36 & 2021.3.5 for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tylearymf committed Jul 2, 2022
1 parent f383cbd commit 1a9bc06
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 14 deletions.
23 changes: 15 additions & 8 deletions Patcher/Unity/UnityPatchInfos.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ public static List<byte[]> ToBytes(params byte[][] bytesArray)
DarkPattern = ToBytes(ToArray("EB 28 48 8D 0D 9D 50 88 01"), ToArray("EB 16 B8 02 00 00 00 E9 EA")),
},
new()
{
Version = "2020.3.36",
LightPattern = ToBytes(ToArray("0F 84 AB 00 00 00 C7 44 24 20"), ToArray("75 16 B8 02 00 00 00 E9 EA")),
DarkPattern = ToBytes(ToArray("E9 AC 00 00 00 00 C7 44 24 20"), ToArray("EB 16 B8 02 00 00 00 E9 EA")),
},
new()
{
Version = "2021.1",
LightPattern = ToBytes(0x75, 0x14, 0xB8, 0x02, 0x00, 0x00, 0x00, 0xE9, 0x33),
Expand All @@ -175,20 +181,21 @@ public static List<byte[]> ToBytes(params byte[][] bytesArray)
},
new()
{
Version = "2021.3.2",
LightPattern = ToBytes(ToArray("74 19 48 8D 0D C0 82 3F 01"), ToArray("75 14 B8 02 00 00 00 E9 66")),
DarkPattern = ToBytes(ToArray("EB 19 48 8D 0D C0 82 3F 01"), ToArray("74 14 B8 02 00 00 00 E9 66")),
// 2021.3.5
Version = "2021.3",
LightPattern = ToBytes(ToArray("0F 84 9C 00 00 00 C7 44 24 20 24"), ToArray("75 14 B8 02 00 00 00 E9 66")),
DarkPattern = ToBytes(ToArray("E9 9D 00 00 00 00 C7 44 24 20 24"), ToArray("74 14 B8 02 00 00 00 E9 66")),
},
new()
{
Version = "2021.3.3",
LightPattern = ToBytes(ToArray("0F 84 9C 00 00 00 C7 44 24 20 24"), ToArray("75 14 B8 02 00 00 00 E9 66")),
DarkPattern = ToBytes(ToArray("E9 9D 00 00 00 00 C7 44 24 20 24"), ToArray("74 14 B8 02 00 00 00 E9 66")),
Version = "2021.3.2",
LightPattern = ToBytes(ToArray("74 19 48 8D 0D C0 82 3F 01"), ToArray("75 14 B8 02 00 00 00 E9 66")),
DarkPattern = ToBytes(ToArray("EB 19 48 8D 0D C0 82 3F 01"), ToArray("74 14 B8 02 00 00 00 E9 66")),
},
new()
{
// 2021.3.4
Version = "2021.3",
Version = "2021.3.4",
LightPattern = ToBytes(ToArray("E9 C5 00 00 00 48 8D 0D 67 1E 40"), ToArray("75 14 B8 02 00 00 00 E9 66")),
DarkPattern = ToBytes(ToArray("EB 3C 00 00 00 48 8D 0D 67 1E 40"), ToArray("74 14 B8 02 00 00 00 E9 66")),
},
Expand Down Expand Up @@ -288,7 +295,7 @@ public static List<byte[]> ToBytes(params byte[][] bytesArray)
Version = "2021.3.1",
Architecture = ArchitectureType.MacOS_ARM64,
LightPattern = ToBytes(ToArray("F4 02 00 34 21 CC 00 90 21 40 22 91 83"), ToArray("94 20 06 00 36 E1 E3 01 91 E0 03 13 AA 2F 0B")),
DarkPattern = ToBytes( ToArray("17 00 00 14 21 CC 00 90 21 40 22 91 83"), ToArray("94 20 06 00 37 E1 E3 01 91 E0 03 13 AA 2F 0B")),
DarkPattern = ToBytes(ToArray("17 00 00 14 21 CC 00 90 21 40 22 91 83"), ToArray("94 20 06 00 37 E1 E3 01 91 E0 03 13 AA 2F 0B")),
},
new()
{
Expand Down
2 changes: 1 addition & 1 deletion UniHacker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<BuiltInComInteropSupport>true</BuiltInComInteropSupport>
<Authors>tylearymf</Authors>
<Company>tylearymf</Company>
<Version>2.6</Version>
<Version>2.7</Version>
<PackageId>com.tylearymf.unihacker</PackageId>
<PackageProjectUrl>https:/www.github.com/tylearymf/unihacker</PackageProjectUrl>
<ApplicationIcon>Assets\avalonia-logo.ico</ApplicationIcon>
Expand Down
10 changes: 5 additions & 5 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ if exist "%publish%" (

set param=--self-contained:true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeAllContentForSelfExtract=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=None -p:DebugSymbols=false

echo dotnet publish windows x86
dotnet publish -c:Release -f:net6.0 -r:win-x86 -o:%publish%\win-x86 %param% > nul
REM echo dotnet publish windows x86
REM dotnet publish -c:Release -f:net6.0 -r:win-x86 -o:%publish%\win-x86 %param% > nul

echo dotnet publish windows x64
dotnet publish -c:Release -f:net6.0 -r:win-x64 -o:%publish%\win-x64 %param% > nul
Expand All @@ -46,7 +46,7 @@ dotnet publish -c:Release -f:net6.0 -r:linux-x64 -o:%publish%\linux-x64 %param%

echo rename executable file
set exeFullName=%exeName%%verName%
ren %publish%\win-x86\%exeName%.exe %exeFullName%.exe
REM ren %publish%\win-x86\%exeName%.exe %exeFullName%.exe
ren %publish%\win-x64\%exeName%.exe %exeFullName%.exe
ren %publish%\linux-x64\%exeName% %exeFullName%.AppImage

Expand All @@ -58,8 +58,8 @@ echo f| xcopy /Y "%osxPath%\%exeName%" "%bundlePath%\Contents\Resources\script"
del /q %osxPath%\%exeName% > nul
echo d| move /Y "%osxPath%\*.*" "%bundlePath%\Contents\Resources\" > nul

echo compress windows x86 file
7z a %publish%\%exeName%-win-x86.7z %publish%\win-x86\* > nul
REM echo compress windows x86 file
REM 7z a %publish%\%exeName%-win-x86.7z %publish%\win-x86\* > nul

echo compress windows x64 file
7z a %publish%\%exeName%-win-x64.7z %publish%\win-x64\* > nul
Expand Down

0 comments on commit 1a9bc06

Please sign in to comment.