Skip to content

Commit 6253c6f

Browse files
committed
UNITY_VER
1 parent e97595b commit 6253c6f

2 files changed

Lines changed: 5 additions & 8 deletions

File tree

.github/workflows/android.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: Android CI
22

33
on:
4-
push:
5-
branches:
6-
- main
74
workflow_dispatch:
85
release:
96
types: [ released ]

app/src/main/cpp/ByNameModding/include/BNM/UserSettings/GlobalSettings.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ static_assert(false, "ByNameModding requires C++20 and above!");
2020
//#define UNITY_VER 212 // 2021.2.x
2121
//#define UNITY_VER 213 // 2021.3.x
2222
//#define UNITY_VER 221 // 2022.1.x
23-
#define UNITY_VER 222 // 2022.2.x - 2022.3.x
23+
//#define UNITY_VER 222 // 2022.2.x - 2022.3.x
2424
//#define UNITY_VER 231 // 2023.1.x
25-
//#define UNITY_VER 232 // 2023.2.x+
25+
#define UNITY_VER 232 // 2023.2.x+
2626

2727
#define UNITY_PATCH_VER 32 // Для особых случаев (For special cases)
2828

@@ -125,19 +125,19 @@ static_assert(false, "ByNameModding requires C++20 and above!");
125125

126126
template<typename PTR_T, typename NEW_T, typename T_OLD>
127127
inline void *BasicHook(PTR_T ptr, NEW_T newMethod, T_OLD &oldBytes) {
128-
if ((void *) ptr != nullptr) DobbyHook((void *)ptr, (void *) newMethod, (void **) &oldBytes);
128+
if ((void *) ptr != nullptr) DobbyHook((void *) ptr, (void *) newMethod, (void **) &oldBytes);
129129
return (void *) ptr;
130130
}
131131

132132
template<typename PTR_T, typename NEW_T, typename T_OLD>
133133
inline void *BasicHook(PTR_T ptr, NEW_T newMethod, T_OLD &&oldBytes) {
134-
if ((void *) ptr != nullptr) DobbyHook((void *)ptr, (void *) newMethod, (void **) &oldBytes);
134+
if ((void *) ptr != nullptr) DobbyHook((void *) ptr, (void *) newMethod, (void **) &oldBytes);
135135
return (void *) ptr;
136136
}
137137

138138
template<typename PTR_T>
139139
inline void Unhook(PTR_T ptr) {
140-
if ((void *) ptr != nullptr) DobbyDestroy((void *)ptr);
140+
if ((void *) ptr != nullptr) DobbyDestroy((void *) ptr);
141141
}
142142

143143
// Dummy

0 commit comments

Comments
 (0)