mirror of
https://github.com/morluto/rea.git
synced 2026-11-23 15:05:51 +00:00
Link IL2CPP metadata names to native addresses and types through shared CLI/MCP workflows, with bounded queries and atomic Ghidra seed export. Preserve the original implementation by 8rulerstar and follow-up correctness, resource, provenance, and CI dependency repairs. Verified against real Windows/Android artifacts, independent references, actual Ghidra, and focused CLI/MCP tests. Fixes #5112.
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
import type { AnalysisError } from "../../domain/analysisErrorBase.js";
|
|
import type { Il2cppMetadata } from "../../domain/il2cpp/il2cppMetadata.js";
|
|
import type { Result } from "../../domain/result.js";
|
|
import type { ExecutionOptions } from "../AnalysisProvider.js";
|
|
|
|
/** Explicit file output, separate from read-only metadata inspection. */
|
|
export interface Il2cppSeedOutput {
|
|
readonly path: string;
|
|
readonly base?: string;
|
|
}
|
|
export interface Il2cppSeedReceipt {
|
|
readonly path: string;
|
|
readonly bytes: number;
|
|
readonly functions: number;
|
|
readonly folded: number;
|
|
readonly no_body: number;
|
|
readonly unknown: number;
|
|
}
|
|
|
|
/** Shared output workflow; adapters own file format and publication resources. */
|
|
export interface Il2cppSeedWriterPort {
|
|
check(
|
|
output: Il2cppSeedOutput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<void, AnalysisError>>;
|
|
write(
|
|
report: Il2cppMetadata,
|
|
output: Il2cppSeedOutput,
|
|
options?: ExecutionOptions,
|
|
): Promise<Result<Il2cppSeedReceipt, AnalysisError>>;
|
|
close(): Promise<void>;
|
|
}
|