Skip to content

Commit 17beb50

Browse files
committed
AS3 Intrinsic Library Improvement update 2
Only loops the major version number. Fixed some spelling mistakes.
1 parent 56ac66b commit 17beb50

File tree

1 file changed

+7
-15
lines changed

1 file changed

+7
-15
lines changed

External/Plugins/AS3Context/Context.cs

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,21 +335,13 @@ public override void BuildClassPath()
335335

336336
// intrinsics (deprecated, excepted for FP10 Vector.<T>)
337337
// add from the highest version number (FP11 > FP10 > FP9)
338-
if (majorVersion >= 9)
338+
string fp = as3settings.AS3ClassPath + S + "FP";
339+
for (int i = majorVersion; i >= 9; i--)
339340
{
340-
string fp = as3settings.AS3ClassPath + S + "FP";
341-
for (int i = majorVersion; i >= 10; i--)
342-
{
343-
for (int j = minorVersion; j >= 0; j--)
344-
{
345-
AddPath(PathHelper.ResolvePath(fp + i + "." + j));
346-
}
347-
AddPath(PathHelper.ResolvePath(fp + i));
348-
}
349-
AddPath(PathHelper.ResolvePath(fp + "9"));
341+
AddPath(PathHelper.ResolvePath(fp + i));
350342
}
351343

352-
// add external pathes
344+
// add external paths
353345
List<PathModel> initCP = classPath;
354346
classPath = new List<PathModel>();
355347
if (contextSetup.Classpath != null)
@@ -360,20 +352,20 @@ public override void BuildClassPath()
360352

361353
// add library
362354
AddPath(PathHelper.LibraryDir + S + "AS3" + S + "classes");
363-
// add user pathes from settings
355+
// add user paths from settings
364356
if (settings.UserClasspath != null && settings.UserClasspath.Length > 0)
365357
{
366358
foreach (string cpath in settings.UserClasspath) AddPath(cpath.Trim());
367359
}
368360

369-
// add initial pathes
361+
// add initial paths
370362
foreach (PathModel mpath in initCP) AddPath(mpath);
371363

372364
// parse top-level elements
373365
InitTopLevelElements();
374366
if (cFile != null) UpdateTopLevelElements();
375367

376-
// add current temporaty path
368+
// add current temporary path
377369
if (temporaryPath != null)
378370
{
379371
string tempPath = temporaryPath;

0 commit comments

Comments
 (0)