Hello, did someone encounter some bug using Dialog.FileBrowse and Filecopy after Rename Resource Files?
Here, I can't copy the image file that I selected. At the same time, the image file is loaded in the image object.
Código: Seleccionar todo
imagefile = Dialog.FileBrowse(true, "Change Cover", _DesktopFolder, "PNG Images (*.png)|*.png|", "", "dat", false, false);
if (Button.IsEnabled("MainMenu1") == false) then
Image.Load("GameCover"..GamePage1[1], imagefile[1]); ----- It's working
if imagefile then
for i, v in pairs(imagefile) do
File.Copy(imagefile[i], _SourceFolder.."\\AutoPlay\\Images\\gamecovers\\Game1.png", true, true, false, true, nil);
end
end
end