@@ -9,7 +9,7 @@ namespace UnityLauncherPro
99 /// </summary>
1010 public static class GetUnityInstallations
1111 {
12- static Dictionary < string , string > platformNames = new Dictionary < string , string > { { "androidplayer" , "Android" } , { "windowsstandalonesupport" , "Standalone " } , { "linuxstandalonesupport" , "Standalone " } , { "LinuxStandalone" , "Standalone " } , { "OSXStandalone" , "Standalone " } , { "webglsupport" , "WebGL" } , { "metrosupport" , "UWP" } } ;
12+ static Dictionary < string , string > platformNames = new Dictionary < string , string > { { "androidplayer" , "Android" } , { "windowsstandalonesupport" , "Win " } , { "linuxstandalonesupport" , "Linux " } , { "LinuxStandalone" , "Linux " } , { "OSXStandalone" , "OSX " } , { "webglsupport" , "WebGL" } , { "metrosupport" , "UWP" } , { "iossupport" , "iOS " } } ;
1313
1414
1515 // returns unity installations
@@ -93,22 +93,31 @@ static string[] GetPlatforms(string dataFolder)
9393 // get all folders inside
9494 var platformFolder = Path . Combine ( dataFolder , "PlaybackEngines" ) ;
9595 if ( Directory . Exists ( platformFolder ) == false ) return null ;
96- var directories = Directory . GetDirectories ( platformFolder ) ;
97- for ( int i = 0 ; i < directories . Length ; i ++ )
96+
97+ //var directories = Directory.GetDirectories(platformFolder);
98+ var directories = new List < string > ( Directory . GetDirectories ( platformFolder ) ) ;
99+ //for (int i = 0; i < directories.Length; i++)
100+ var count = directories . Count ;
101+ for ( int i = 0 ; i < count ; i ++ )
98102 {
99103 var foldername = Path . GetFileName ( directories [ i ] ) . ToLower ( ) ;
104+ //Console.WriteLine("PlaybackEngines: " + foldername);
100105 // check if have better name in dictionary
101106 if ( platformNames . ContainsKey ( foldername ) )
102107 {
103108 directories [ i ] = platformNames [ foldername ] ;
109+
110+ // add also 64bit desktop versions for that platform, NOTE dont add android, ios or webgl
111+ if ( foldername . IndexOf ( "alone" ) > - 1 ) directories . Add ( platformNames [ foldername ] + "64" ) ;
104112 }
105- else
113+ else // use raw
106114 {
107115 directories [ i ] = foldername ;
108116 }
117+ //Console.WriteLine(i + " : " + foldername + " > " + directories[i]);
109118 }
110119
111- return directories ;
120+ return directories . ToArray ( ) ;
112121 }
113122
114123 static int GetProjectCountForUnityVersion ( string version )
0 commit comments