From c12429bf979d2ada30d9a27f6178a698f32d21ca Mon Sep 17 00:00:00 2001 From: LukeFZ <17146677+LukeFZ@users.noreply.github.com> Date: Tue, 22 Apr 2025 14:53:08 +0200 Subject: [PATCH] add il2cpp file (binary, metadata) export to advanced tab --- .../src/lib/signalr/server-api.ts | 4 +++ .../src/routes/advanced/+page.svelte | 28 ++++++++++++++++++- Il2CppInspector.Redux.GUI/Il2CppHub.cs | 5 ++++ Il2CppInspector.Redux.GUI/UiContext.cs | 26 +++++++++++++++-- 4 files changed, 60 insertions(+), 3 deletions(-) diff --git a/Il2CppInspector.Redux.GUI.UI/src/lib/signalr/server-api.ts b/Il2CppInspector.Redux.GUI.UI/src/lib/signalr/server-api.ts index 7ec02e1..8cb4981 100644 --- a/Il2CppInspector.Redux.GUI.UI/src/lib/signalr/server-api.ts +++ b/Il2CppInspector.Redux.GUI.UI/src/lib/signalr/server-api.ts @@ -37,4 +37,8 @@ export class SignalRServerApi { "GetPotentialUnityVersions", ); } + + async exportIl2CppFiles(targetDirectory: string) { + return await this.connection.send("ExportIl2CppFiles", targetDirectory); + } } diff --git a/Il2CppInspector.Redux.GUI.UI/src/routes/advanced/+page.svelte b/Il2CppInspector.Redux.GUI.UI/src/routes/advanced/+page.svelte index 808d508..cb0ee6a 100644 --- a/Il2CppInspector.Redux.GUI.UI/src/routes/advanced/+page.svelte +++ b/Il2CppInspector.Redux.GUI.UI/src/routes/advanced/+page.svelte @@ -1,5 +1,22 @@