Update Ring2EXE - custom_OSCopyFile() function
@@ -367,7 +367,7 @@ func DistributeForWindows cBaseFolder,cFileName,aOptions
ok
if islist(aLibrary[:windowsfiles])
for cLibFile in aLibrary[:windowsfiles]
- OSCopyFile(exefolder()+"\"+cLibFile)
+ custom_OSCopyFile("",exefolder()+"\"+cLibFile)
next
ok
else
@@ -385,7 +385,7 @@ func DistributeForWindows cBaseFolder,cFileName,aOptions
ok
if islist(aLibrary[:windowsfiles])
for cLibFile in aLibrary[:windowsfiles]
- OSCopyFile(exefolder()+"\"+cLibFile)
+ custom_OSCopyFile("",exefolder()+"\"+cLibFile)
next
ok
ok
@@ -715,6 +715,11 @@ func CheckQtResourceFile cBaseFolder,cFileName,aOptions
next
for cFile in aFiles
msg("Copy File : " + cFile)
+ custom_OSCopyFile(cBaseFolder,cFile)
+ next
+ ok
+
+func custom_OSCopyFile cBaseFolder,cFile
cDir = currentdir()
cFolder = justfilepath(cFile)
if cFolder != ""
@@ -722,10 +727,13 @@ func CheckQtResourceFile cBaseFolder,cFileName,aOptions
cFolder = left(cFolder,len(cFolder)-1)
OSCreateOpenFolder(cFolder)
ok
+ if cBaseFolder != ""
OSCopyFile(cBaseFolder+"/"+cFile)
- chdir(cDir)
- next
+ else
+ OSCopyFile(cFile)
ok
+ chdir(cDir)
+
func CheckNoCCompiler cBaseFolder,cFileName
