@@ -801,6 +801,36 @@ private string DetectSDKLocation()
801
801
}
802
802
}
803
803
}
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
+ }
804
834
asdocPath = Path . Combine ( parentDir , @"flexsdk\bin\asdoc.exe" ) ;
805
835
asdocPath2 = Path . Combine ( parentDir , @"flexsdk\bin\asdoc.bat" ) ;
806
836
if ( File . Exists ( asdocPath ) ) return Path . GetDirectoryName ( asdocPath ) ;
0 commit comments