WARNING: RENAMED: GetDroppedFiles() to LoadDroppedFiles()

This commit is contained in:
Ray 2022-06-06 20:40:09 +02:00
parent 5bcfa6ccdc
commit 47269f30ce
7 changed files with 16 additions and 16 deletions

View File

@ -129,11 +129,11 @@ int main()
if (IsFileDropped()) if (IsFileDropped())
{ {
int dropFileCount = 0; int dropFileCount = 0;
char **droppedFiles = GetDroppedFiles(&dropFileCount); char **droppedFiles = LoadDroppedFiles(&dropFileCount);
if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]); if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
ClearDroppedFiles(); // Clear internal buffers UnloadDroppedFiles(); // Clear internal buffers
} }
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------

View File

@ -10,8 +10,8 @@
* DRAW: GuiFileDialog(&state); * DRAW: GuiFileDialog(&state);
* *
* NOTE: This module depends on some raylib file system functions: * NOTE: This module depends on some raylib file system functions:
* - GetDirectoryFiles() * - LoadDirectoryFiles()
* - ClearDirectoryFiles() * - UnloadDirectoryFiles()
* - GetWorkingDirectory() * - GetWorkingDirectory()
* - DirectoryExists() * - DirectoryExists()
* - FileExists() * - FileExists()
@ -416,7 +416,7 @@ static char **LoadDirectoryFiles(const char *dir, int *filesCount, char *filterE
bool filterExtensions = true; bool filterExtensions = true;
int dirFilesCount = 0; int dirFilesCount = 0;
char **files = GetDirectoryFiles(dir, &dirFilesCount); char **files = LoadDirectoryFiles(dir, &dirFilesCount);
// Sort files and directories: dir by name + files by name // Sort files and directories: dir by name + files by name
// https://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Quicksort#C // https://en.wikibooks.org/wiki/Algorithm_Implementation/Sorting/Quicksort#C
@ -492,7 +492,7 @@ static char **LoadDirectoryFiles(const char *dir, int *filesCount, char *filterE
} }
} }
ClearDirectoryFiles(); UnloadDirectoryFiles();
*filesCount = validFilesCount; *filesCount = validFilesCount;
return validFiles; return validFiles;

View File

@ -67,7 +67,7 @@ int main(int argc, char *argv[])
if (IsFileDropped()) if (IsFileDropped())
{ {
int fileCount = 0; int fileCount = 0;
char **droppedFiles = GetDroppedFiles(&fileCount); char **droppedFiles = LoadDroppedFiles(&fileCount);
if (fileCount == 1) if (fileCount == 1)
{ {
@ -89,7 +89,7 @@ int main(int argc, char *argv[])
} }
} }
ClearDroppedFiles(); UnloadDroppedFiles();
} }
if (btnExport) if (btnExport)

View File

@ -83,7 +83,7 @@ int main()
if (IsFileDropped()) if (IsFileDropped())
{ {
int fileCount = 0; int fileCount = 0;
char **droppedFiles = GetDroppedFiles(&fileCount); char **droppedFiles = LoadDroppedFiles(&fileCount);
// Check file extensions for drag-and-drop // Check file extensions for drag-and-drop
if ((fileCount == 1) && IsFileExtension(droppedFiles[0], ".raw")) if ((fileCount == 1) && IsFileExtension(droppedFiles[0], ".raw"))
@ -108,7 +108,7 @@ int main()
importWindowActive = true; importWindowActive = true;
} }
ClearDroppedFiles(); UnloadDroppedFiles();
} }
// Check if load button has been pressed // Check if load button has been pressed

View File

@ -141,11 +141,11 @@ int main()
if (IsFileDropped()) if (IsFileDropped())
{ {
int dropFileCount = 0; int dropFileCount = 0;
char **droppedFiles = GetDroppedFiles(&dropFileCount); char **droppedFiles = LoadDroppedFiles(&dropFileCount);
if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]); if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
ClearDroppedFiles(); // Clear internal buffers UnloadDroppedFiles(); // Clear internal buffers
} }
if (visualStyleActive != prevVisualStyleActive) if (visualStyleActive != prevVisualStyleActive)

View File

@ -67,7 +67,7 @@ int main(int argc, char **argv)
if (IsFileDropped()) if (IsFileDropped())
{ {
int count = 0; int count = 0;
char **files = GetDroppedFiles(&count); char **files = LoadDroppedFiles(&count);
if (IsFileExtension(files[0], ".ttf") || if (IsFileExtension(files[0], ".ttf") ||
IsFileExtension(files[0], ".otf") || IsFileExtension(files[0], ".otf") ||
@ -86,7 +86,7 @@ int main(int argc, char **argv)
} }
} }
ClearDroppedFiles(); UnloadDroppedFiles();
} }
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------

View File

@ -142,7 +142,7 @@ int main(int argc, char **argv)
if (IsFileDropped()) if (IsFileDropped())
{ {
int count = 0; int count = 0;
char **files = GetDroppedFiles(&count); char **files = LoadDroppedFiles(&count);
if (IsFileExtension(files[0], ".ttf") || if (IsFileExtension(files[0], ".ttf") ||
IsFileExtension(files[0], ".otf") || IsFileExtension(files[0], ".otf") ||
@ -162,7 +162,7 @@ int main(int argc, char **argv)
} }
} }
ClearDroppedFiles(); UnloadDroppedFiles();
} }
// Convert text to hex representation and draw it on screen // Convert text to hex representation and draw it on screen