fix(il2cpp): select universal binary slices through the shared Mach-O selection (#10661)

* fix(il2cpp): select universal binary slices through the shared Mach-O selection

* test(il2cpp): assert selection facts instead of full sentences
This commit is contained in:
morluto authored and GitHub committed 2026-11-14 18:58:48 -05:00
1 parent ef15353c69
commit 2705aad365
11 files changed
+243 -139

No files matched your search

+1 -2
View File
@@ -82,14 +82,13 @@ export function* linkIl2cppBinarySteps(
bytes: Buffer,
metadata: Il2cppMetadataDecoded,
facts: Il2cppMetadataLinkFacts,
architecture?: string,
options: Il2cppBinaryReadOptions = {},
): Generator<void, Il2cppBinaryLink> {
const version = metadata.metadata_version;
// Refuse an undecoded version before any table is read.
if (options.genericInstances === true) genericMethodLayouts(version);
yield;
const image = yield* openImageSteps(bytes, architecture);
const image = yield* openImageSteps(bytes);
const modules = yield* findModules(image, metadata);
const registration_ = yield* findCodeRegistration(image, modules);
const methodImage = new Int32Array(metadata.methods.length).fill(-1);