Skip to content

Commit bd57fec

Browse files
committed
Detect all SDKs in ASDocGen...
1 parent bb7b07f commit bd57fec

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

External/Tools/ASDocGen/MainForm.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,36 @@ private string DetectSDKLocation()
801801
}
802802
}
803803
}
804+
appManDir = Path.Combine(userAppDir, @"FlashDevelop\Apps\flexairsdk");
805+
if (Directory.Exists(appManDir))
806+
{
807+
String[] versionDirs = Directory.GetDirectories(appManDir);
808+
foreach (string versionDir in versionDirs)
809+
{
810+
if (Directory.Exists(versionDir))
811+
{
812+
asdocPath = Path.Combine(versionDir, @"bin\asdoc.exe");
813+
asdocPath2 = Path.Combine(versionDir, @"bin\asdoc.bat");
814+
if (File.Exists(asdocPath)) return Path.GetDirectoryName(asdocPath);
815+
if (File.Exists(asdocPath2)) return Path.GetDirectoryName(asdocPath2);
816+
}
817+
}
818+
}
819+
appManDir = Path.Combine(userAppDir, @"FlashDevelop\Apps\ascsdk");
820+
if (Directory.Exists(appManDir))
821+
{
822+
String[] versionDirs = Directory.GetDirectories(appManDir);
823+
foreach (string versionDir in versionDirs)
824+
{
825+
if (Directory.Exists(versionDir))
826+
{
827+
asdocPath = Path.Combine(versionDir, @"bin\asdoc.exe");
828+
asdocPath2 = Path.Combine(versionDir, @"bin\asdoc.bat");
829+
if (File.Exists(asdocPath)) return Path.GetDirectoryName(asdocPath);
830+
if (File.Exists(asdocPath2)) return Path.GetDirectoryName(asdocPath2);
831+
}
832+
}
833+
}
804834
asdocPath = Path.Combine(parentDir, @"flexsdk\bin\asdoc.exe");
805835
asdocPath2 = Path.Combine(parentDir, @"flexsdk\bin\asdoc.bat");
806836
if (File.Exists(asdocPath)) return Path.GetDirectoryName(asdocPath);
512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)