Dialog.FileBrowse and Filecopy (Rename Resource Files)

Aquí puedes preguntar o compartir tus dudas y conocimientos acerca del programa
Hello, did someone encounter some bug using Dialog.FileBrowse and Filecopy after Rename Resource Files?

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
Here, I can't copy the image file that I selected. At the same time, the image file is loaded in the image object.
Imagen

change the destination folder
usamakey escribió:
17 Ago 2021 12:01
Imagen

change the destination folder
Thank you for your support. I didn't notice that the folder is missing after the rename. :pc:
who talked about rename?
where are you copying the image file?

change the destination folder
I tried to create this in global functions

Código: Seleccionar todo

function FoundAsset()
	AssetFound = Folder.Find(_SourceFolder.."\\bin", "*Images*", true, ShowSearchProgress);
end

FoundAsset();

if (AssetFound == false) then
	Folder.Create(_SourceFolder.."\\bin\\Images\\gamecovers");
end
and followed your advice to change the destination folder.

Código: Seleccionar todo

File.Copy(imagefile[i], [color=#FF0000]_SourceFolder .. "\\bin\\Images\\gamecovers\\Game1.png"[/color], false, true, true, false, nil);
Thanks anyway..
:normas:
you are trying to copy an image file into an exe file


HIDE: ON
Hidebb Message Hidden Description
usamakey escribió:
17 Ago 2021 19:28
:normas:
you are trying to copy an image file into an exe file
:facepalm-1417752010: :lol: