Updated examples to new raylib 4.2 files API

This commit is contained in:
Ray
2022-06-29 19:45:47 +02:00
parent 7ef0ae713b
commit 9c826f213f
5 changed files with 21 additions and 25 deletions

View File

@ -66,12 +66,11 @@ int main(int argc, char *argv[])
//----------------------------------------------------------------------------------
if (IsFileDropped())
{
int fileCount = 0;
char **droppedFiles = LoadDroppedFiles(&fileCount);
FilePathList droppedFiles = LoadDroppedFiles();
if (fileCount == 1)
if (droppedFiles.count == 1)
{
Image imTemp = LoadImage(droppedFiles[0]);
Image imTemp = LoadImage(droppedFiles.paths[0]);
if (imTemp.data != NULL)
{
@ -89,7 +88,7 @@ int main(int argc, char *argv[])
}
}
UnloadDroppedFiles();
UnloadDroppedFiles(droppedFiles);
}
if (btnExport)