Skip to content

Commit 91b3245

Browse files
committed
editors: add IL2CPP module download context menu
1 parent 17fab6b commit 91b3245

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

UnityLauncherPro/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@
283283
<MenuItem x:Name="menuItemDownloadIOSModule" Header="Download IOS module" Click="MenuItemDownloadIOSModule_Click"/>
284284
<MenuItem x:Name="menuItemDownloadWebGLModule" Header="Download WebGL module" Click="MenuItemDownloadWebGLModule_Click" />
285285
<MenuItem x:Name="menuItemDownloadLinuxModule" Header="Download Linux modules" Click="MenuItemDownloadLinuxModule_Click"/>
286+
<MenuItem x:Name="menuItemDownloadIL2CPPModule" Header="Download IL2CPP module" Click="menuItemDownloadIL2CPPModule_Click"/>
286287
</MenuItem>
287288
</ContextMenu>
288289
</DataGrid.ContextMenu>

UnityLauncherPro/MainWindow.xaml.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,6 +3284,13 @@ private void rdoAll_Checked(object sender, RoutedEventArgs e)
32843284
FilterUpdates();
32853285
}
32863286

3287+
private void menuItemDownloadIL2CPPModule_Click(object sender, RoutedEventArgs e)
3288+
{
3289+
var unity = GetSelectedUnity();
3290+
if (unity == null) return;
3291+
Tools.DownloadAdditionalModules(unity.Path, unity.Version, "Windows-IL2CPP");
3292+
}
3293+
32873294
//private void BtnBrowseTemplateUnityPackagesFolder_Click(object sender, RoutedEventArgs e)
32883295
//{
32893296
// var folder = Tools.BrowseForOutputFolder("Select unitypackage Templates folder");

UnityLauncherPro/Tools.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ public static bool LaunchExplorer(string folder)
376376
{
377377
for (int i = folder.Length - 1; i > -1; i--)
378378
{
379+
// TODO path.separator
379380
if (folder[i] == '/')
380381
{
381382
if (Directory.Exists(folder.Substring(0, i)))

0 commit comments

Comments
 (0)