GeezerVison is showing github.com — il2cpp new version · forkandroid/FakerAndroid@57abd4a
File treeExpand file treeCollapse file tree Open diff view settings controller/src/test/java/faker/android/decoder java/faker/android/decoder/il2cpp resources/prebuilt/windows
runtime-il2cpp/src/main/resources/il2cpp-template/scaffolding-cpp
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: controller/src/test/java/faker/android/decoder/TestProject.java +1-2Lines changed: 1 addition & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 18 | 18 | public class TestProject { | 19 | 19 | private static final Logger LOG = LoggerFactory.getLogger(TestProject.class); | 20 | 20 | // static File in = TestUtils.getFileFromSampleDir("app-with-fake-dex.apk"); | 21 | | - static File in = TestUtils.getFileFromSampleDir("waiwai.apk"); | 22 | | - | | 21 | + static File in = TestUtils.getFileFromSampleDir("niuzai.apk"); | 23 | 22 | @Test | 24 | 23 | public void fakeRroject() throws IOException { | 25 | 24 | File out = TestUtils.getFileOutSampleDir("fakeRroject","niuzai"); | |
Collapse file Copy file name to clipboardExpand all lines: distribution/il2cpp-dumper/src/main/java/faker/android/decoder/il2cpp/Il2cppBinary.java +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -51,6 +51,9 @@ public static void dumpIl2cpp(File in,File out) throws BinaryException, FakerAnd | 51 | 51 | il2cppBinaryCommad.add("-o"); | 52 | 52 | il2cppBinaryCommad.add(new File(il2cppScaffoldingHelper,"help.json").getAbsolutePath()); | 53 | 53 |
| | 54 | + il2cppBinaryCommad.add("--cpp-compiler"); | | 55 | + il2cppBinaryCommad.add("GCC"); | | 56 | + | 54 | 57 |
| 55 | 58 | try { | 56 | 59 | OS.exec(il2cppBinaryCommad.toArray(new String[0])); | |
Collapse file Copy file name to clipboard Collapse file Copy file name to clipboardExpand all lines: distribution/runtime-il2cpp/src/main/resources/il2cpp-template/scaffolding-cpp/MonoString.cpp.tmpl -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | 2 | | - * Generated by FakerAndroid for doc or help by https://github.com/Efaker/FakerAndroid | 3 | | - */ | 4 | 1 | #include <cstring> | 5 | 2 | #include "MonoString.h" | 6 | 3 |
| |
Collapse file Copy file name to clipboardExpand all lines: distribution/runtime-il2cpp/src/main/resources/il2cpp-template/scaffolding-cpp/MonoString.h.tmpl -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | 2 | | - * Generated by FakerAndroid for doc or help by https://github.com/Efaker/FakerAndroid | 3 | | - */ | 4 | 1 | #ifndef U3DINJECT_MASTER_MONOSTRING_H | 5 | 2 | #define U3DINJECT_MASTER_MONOSTRING_H | 6 | 3 |
| |
Collapse file Copy file name to clipboardExpand all lines: distribution/runtime-il2cpp/src/main/resources/il2cpp-template/scaffolding-cpp/il2cpp-appdata.h.tmpl +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | 2 | | - * Generated by FakerAndroid for doc or help by https://github.com/Efaker/FakerAndroid | 3 | | - */ | 4 | 1 | #pragma once | 5 | 2 |
| 6 | 3 | #include <cstdint> | | 9 | 6 | #include "il2cpp-types.h" | 10 | 7 |
| 11 | 8 | #include "MonoString.h" | | 9 | + | 12 | 10 | // IL2CPP API function pointers | 13 | 11 | #include "il2cpp-api-functions-ptr.h" | 14 | 12 |
| | 19 | 17 |
| 20 | 18 | // Application-specific functions | 21 | 19 | #define DO_APP_FUNC(a, r, n, p) extern r (*n) p | | 20 | +#define DO_APP_FUNC_METHODINFO(a, n) extern struct MethodInfo ** n | 22 | 21 | namespace app { | 23 | 22 | #include "il2cpp-functions.h" | 24 | 23 | } | 25 | 24 | #undef DO_APP_FUNC | | 25 | +#undef DO_APP_FUNC_METHODINFO | 26 | 26 |
| 27 | 27 | // TypeInfo pointers | 28 | | -#define DO_TYPEDEF(a, n) extern n ## __Class* n ## __TypeInfo | | 28 | +#define DO_TYPEDEF(a, n) extern n ## __Class** n ## __TypeInfo | 29 | 29 | namespace app { | 30 | 30 | #include "il2cpp-types-ptr.h" | 31 | 31 | } | |
Collapse file Copy file name to clipboard +7-6Lines changed: 7 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | 2 | | - * Generated by FakerAndroid for doc or help by https://github.com/Efaker/FakerAndroid | 3 | | - */ | 4 | 1 | #include "il2cpp-appdata.h" | 5 | 2 | #include "il2cpp-init.h" | | 3 | + | 6 | 4 | // IL2CPP APIs | 7 | 5 | #define DO_API(r, n, p) r (*n) p | 8 | 6 | #include "il2cpp-api-functions.h" | 9 | 7 | #undef DO_API | 10 | 8 |
| 11 | 9 | // Application-specific functions | 12 | 10 | #define DO_APP_FUNC(a, r, n, p) r (*n) p | | 11 | +#define DO_APP_FUNC_METHODINFO(a, n) struct MethodInfo ** n | 13 | 12 | namespace app { | 14 | 13 | #include "il2cpp-functions.h" | 15 | 14 | } | 16 | 15 | #undef DO_APP_FUNC | | 16 | +#undef DO_APP_FUNC_METHODINFO | 17 | 17 |
| 18 | 18 | // TypeInfo pointers | 19 | | -#define DO_TYPEDEF(a, n) n ## __Class* n ## __TypeInfo | | 19 | +#define DO_TYPEDEF(a, n) n ## __Class** n ## __TypeInfo | 20 | 20 | namespace app { | 21 | 21 | #include "il2cpp-types-ptr.h" | 22 | 22 | } | @@ -25,7 +25,6 @@ namespace app { | 25 | 25 | // IL2CPP application initializer | 26 | 26 | void init_il2cpp(long baseAddress) | 27 | 27 | { | 28 | | - // Get base address of IL2CPP module | 29 | 28 | using namespace app; | 30 | 29 |
| 31 | 30 | // Define IL2CPP API function addresses | @@ -35,11 +34,13 @@ void init_il2cpp(long baseAddress) | 35 | 34 |
| 36 | 35 | // Define function addresses | 37 | 36 | #define DO_APP_FUNC(a, r, n, p) n = (r (*) p)(baseAddress + a) | | 37 | + #define DO_APP_FUNC_METHODINFO(a, n) n = (struct MethodInfo **)(baseAddress + a) | 38 | 38 | #include "il2cpp-functions.h" | 39 | 39 | #undef DO_APP_FUNC | | 40 | + #undef DO_APP_FUNC_METHODINFO | 40 | 41 |
| 41 | 42 | // Define TypeInfo variables | 42 | | - #define DO_TYPEDEF(a, n) n ## __TypeInfo = *(n ## __Class**) (baseAddress + a); | | 43 | + #define DO_TYPEDEF(a, n) n ## __TypeInfo = (n ## __Class**) (baseAddress + a); | 43 | 44 | #include "il2cpp-types-ptr.h" | 44 | 45 | #undef DO_TYPEDEF | 45 | 46 | } |
Collapse file Copy file name to clipboardExpand all lines: distribution/runtime-il2cpp/src/main/resources/il2cpp-template/scaffolding-cpp/il2cpp-init.h.tmpl -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -/** | 2 | | - * Generated by FakerAndroid for doc or help by https://github.com/Efaker/FakerAndroid | 3 | | - */ | 4 | 1 | #pragma once | 5 | 2 |
| 6 | 3 | // IL2CPP application initializer | |
|