diff --git a/Il2CppInspector.GUI/MainWindow.xaml b/Il2CppInspector.GUI/MainWindow.xaml
index d1b4ec1..a8e6a35 100644
--- a/Il2CppInspector.GUI/MainWindow.xaml
+++ b/Il2CppInspector.GUI/MainWindow.xaml
@@ -369,6 +369,10 @@
+
+
+
+
diff --git a/Il2CppInspector.GUI/MainWindow.xaml.cs b/Il2CppInspector.GUI/MainWindow.xaml.cs
index 9dade1d..ec31867 100644
--- a/Il2CppInspector.GUI/MainWindow.xaml.cs
+++ b/Il2CppInspector.GUI/MainWindow.xaml.cs
@@ -49,6 +49,10 @@ namespace Il2CppInspectorGUI
var programFiles = Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles);
txtUnityPath.Text = Utils.FindPath($@"{programFiles}\Unity\Hub\Editor\*") ?? "";
txtUnityScriptPath.Text = Utils.FindPath($@"{programFiles}\Unity\Hub\Editor\*\Editor\Data\Resources\PackageManager\ProjectTemplates\libcache\com.unity.template.3d-*\ScriptAssemblies") ?? "";
+
+ // Populate script target combo box and select IDA by default
+ cboPyTarget.ItemsSource = PythonScript.GetAvailableTargets();
+ cboPyTarget.SelectedItem = (cboPyTarget.ItemsSource as IEnumerable).First(x => x == "IDA");
}
///
@@ -426,12 +430,13 @@ namespace Il2CppInspectorGUI
areaBusyIndicator.Visibility = Visibility.Visible;
var selectedPyUnityVersion = ((UnityHeaders) cboPyUnityVersion.SelectedItem)?.VersionRange.Min;
+ var selectedPyTarget = (string) cboPyTarget.SelectedItem;
await Task.Run(() => {
OnStatusUpdate(this, "Building C++ application model");
model.Build(selectedPyUnityVersion, CppCompilerType.GCC);
- OnStatusUpdate(this, "Generating Python script");
- new PythonScript(model).WriteScriptToFile(pyOutFile, "IDA");
+ OnStatusUpdate(this, $"Generating {selectedPyTarget} Python script");
+ new PythonScript(model).WriteScriptToFile(pyOutFile, selectedPyTarget);
});
break;