Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 551357d

Browse files
committed
[[ ExtensionPackageUtils ]] Update uses of extension package API
1 parent 3831e0e commit 551357d

1 file changed

Lines changed: 5 additions & 32 deletions

File tree

Toolset/libraries/revideextensionlibrary.livecodescript

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ function revIDEExtensionsOrderByDependency pExtensions
810810
end repeat
811811
end repeat
812812

813-
return extensionsOrderByDependency(pExtensions, tRequiresA)
813+
return extensionOrderByDependency(pExtensions, tRequiresA)
814814
end revIDEExtensionsOrderByDependency
815815

816816
private function __RegexPatternForSource pType
@@ -968,7 +968,7 @@ on __extensionsLoad
968968
end repeat
969969

970970
local tLoadOrder
971-
put extensionsOrderByDependency(tExtensionsList, tRequiresA) into \
971+
put extensionOrderByDependency(tExtensionsList, tRequiresA) into \
972972
tLoadOrder
973973

974974
repeat for each line tLine in tLoadOrder
@@ -1531,37 +1531,10 @@ on revIDEExtensionUpdateAPI pFolder, pExtensionSource
15311531
end if
15321532
end revIDEExtensionUpdateAPI
15331533

1534-
private function __revIDEExtensionResourcePath
1535-
if revEnvironmentIsInstalled() is false then
1536-
return revEnvironmentBinariesPath()
1537-
else
1538-
return revIDESpecialFolderPath("Toolchain")
1539-
end if
1540-
end __revIDEExtensionResourcePath
1541-
1542-
private function __revIDEExtensionCompilerPath
1543-
# The actual compile command
1544-
if the platform is "win32" then
1545-
return __revIDEExtensionResourcePath() & slash & "lc-compile.exe"
1546-
else
1547-
return __revIDEExtensionResourcePath() & slash & "lc-compile"
1548-
end if
1549-
end __revIDEExtensionCompilerPath
1550-
1551-
private function shellFormat pArg, pSwitch
1552-
local tOutput
1553-
1554-
if pSwitch is not empty then
1555-
put "--" & pSwitch & " " into tOutput
1556-
end if
1557-
1558-
return tOutput & quote & pArg & quote & " "
1559-
end shellFormat
1560-
15611534
command revIDEExtensionCompile pFile, pSupportFiles, pTargetFolder, pOutputFilename
1562-
extensionCompile pFile, pSupportFiles, \
1563-
revIDESpecialFolderPath("user extensions") & slash & "interface", \
1564-
pTargetFolder, pOutputFilename
1535+
extensionCompile "", pFile, pSupportFiles, "", \
1536+
revIDESpecialFolderPath("user extensions") & slash & \
1537+
"interface", pTargetFolder, pOutputFilename
15651538

15661539
if the result is not empty then
15671540
return the result for error

0 commit comments

Comments
 (0)