Skip to content

Commit 00e222b

Browse files
committed
Add Unity 6000.1.0f1
1 parent ff277db commit 00e222b

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ A Frida module to dump, trace or hijack any Il2Cpp application at runtime, witho
1818

1919
#### Unity version
2020

21-
It should work for any Unity version in the range **5.3.0** - **2023.2.x**.
21+
It should work for any Unity version in the range **5.3.0** - **6000.1.x**.
2222

2323
#### Platforms
2424

example/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"run:host": "npm run frida:local -- --kill-on-exit -f ../build/host ../build/$UNITY_VERSION/out",
1111
"run:host:5.3.5f1": "UNITY_VERSION=5.3.5f1 npm run run:host",
1212
"run:host:2019.3.0f1": "UNITY_VERSION=2019.3.0f1 npm run run:host",
13+
"run:host:6000.1.0f1": "UNITY_VERSION=6000.1.0f1 npm run run:host",
1314
"dump:host": "npm exec frida-il2cpp-bridge -- -f ../build/host ../build/$UNITY_VERSION/out dump --out-dir dist",
1415
"dump:host:5.3.5f1": "UNITY_VERSION=5.3.5f1 npm run dump:host -- --no-type-keywords --actual-constructor-names --keep-implicit-base-classes",
1516
"dump:host:2019.3.0f1": "UNITY_VERSION=2019.3.0f1 npm run dump:host"

lib/utils/unity-version.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** @internal */
22
namespace UnityVersion {
3-
const pattern = /(20\d{2}|\d)\.(\d)\.(\d{1,2})(?:[abcfp]|rc){0,2}\d?/;
3+
const pattern = /(6\d{3}|20\d{2}|\d)\.(\d)\.(\d{1,2})(?:[abcfp]|rc){0,2}\d?/;
44

55
export function find(string: string | null): string | undefined {
66
return string?.match(pattern)?.[0];

unity/6000.1.0f1/Makefile

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
UNITY_CHANGESET := 9ea152932a88
2+
3+
include ../common.mk
4+
5+
UNITY_LINKER := $(MAYBE_STRACE) $(IL2CPP_DIR)/build/deploy/UnityLinker
6+
IL2CPP := $(MAYBE_STRACE) $(IL2CPP_DIR)/build/deploy/il2cpp
7+
8+
MSCORLIB := $(MONOBL_DIR)/lib/mono/unityaot-linux/mscorlib.dll
9+
10+
ASSEMBLY_TARGET_CMD = $(IL2CPP) \
11+
--compile-cpp \
12+
--libil2cpp-static \
13+
--configuration=Release \
14+
--platform=Linux \
15+
--architecture=x64 \
16+
--dotnetprofile=unityaot-linux \
17+
--cachedirectory="$(@D)/.." \
18+
--generatedcppdir="$(<D)" \
19+
--baselib-directory="$(EDITOR_DIR)/Data/PlaybackEngines/LinuxStandaloneSupport/Variations/linux64_player_development_il2cpp/" \
20+
--outputpath="$@"
21+
22+
CPP_TARGET_CMD = $(IL2CPP) \
23+
--convert-to-cpp \
24+
--emit-null-checks \
25+
--enable-array-bounds-check \
26+
--dotnetprofile=unityaot-linux \
27+
--copy-level=None \
28+
--directory="$(<D)" \
29+
--generatedcppdir="$(@D)"
30+
31+
LINKED_DLL_TARGET_CMD = $(UNITY_LINKER) \
32+
--silent \
33+
--i18n=none \
34+
--core-action=link \
35+
--strip-security \
36+
--rule-set=aggressive \
37+
--dotnetruntime=il2cpp \
38+
--dotnetprofile=unityaot-linux \
39+
--descriptor-directory="$(LINKER_DESCRIPTORS_DIR)" \
40+
--include-assembly="$<,$(MSCORLIB)" \
41+
--out="$(@D)"

0 commit comments

Comments
 (0)