diff --git a/examples/controls_test_suite/controls_test_suite.c b/examples/controls_test_suite/controls_test_suite.c index 5307d80..519e176 100644 --- a/examples/controls_test_suite/controls_test_suite.c +++ b/examples/controls_test_suite/controls_test_suite.c @@ -129,11 +129,11 @@ int main() if (IsFileDropped()) { int dropFileCount = 0; - char **droppedFiles = GetDroppedFiles(&dropFileCount); + char **droppedFiles = LoadDroppedFiles(&dropFileCount); if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]); - ClearDroppedFiles(); // Clear internal buffers + UnloadDroppedFiles(); // Clear internal buffers } //---------------------------------------------------------------------------------- diff --git a/examples/custom_file_dialog/gui_file_dialog.h b/examples/custom_file_dialog/gui_file_dialog.h index 266ef03..15cece6 100644 --- a/examples/custom_file_dialog/gui_file_dialog.h +++ b/examples/custom_file_dialog/gui_file_dialog.h @@ -10,8 +10,8 @@ * DRAW: GuiFileDialog(&state); * * NOTE: This module depends on some raylib file system functions: -* - GetDirectoryFiles() -* - ClearDirectoryFiles() +* - LoadDirectoryFiles() +* - UnloadDirectoryFiles() * - GetWorkingDirectory() * - DirectoryExists() * - FileExists() @@ -416,7 +416,7 @@ static char **LoadDirectoryFiles(const char *dir, int *filesCount, char *filterE bool filterExtensions = true; int dirFilesCount = 0; - char **files = GetDirectoryFiles(dir, &dirFilesCount); + char **files = LoadDirectoryFiles(dir, &dirFilesCount); // Sort files and directories: dir by name + files by name // 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; return validFiles; diff --git a/examples/image_exporter/image_exporter.c b/examples/image_exporter/image_exporter.c index d5d62ce..7abf2b5 100644 --- a/examples/image_exporter/image_exporter.c +++ b/examples/image_exporter/image_exporter.c @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) if (IsFileDropped()) { int fileCount = 0; - char **droppedFiles = GetDroppedFiles(&fileCount); + char **droppedFiles = LoadDroppedFiles(&fileCount); if (fileCount == 1) { @@ -89,7 +89,7 @@ int main(int argc, char *argv[]) } } - ClearDroppedFiles(); + UnloadDroppedFiles(); } if (btnExport) diff --git a/examples/image_importer_raw/image_importer_raw.c b/examples/image_importer_raw/image_importer_raw.c index ac2685f..2735097 100644 --- a/examples/image_importer_raw/image_importer_raw.c +++ b/examples/image_importer_raw/image_importer_raw.c @@ -83,7 +83,7 @@ int main() if (IsFileDropped()) { int fileCount = 0; - char **droppedFiles = GetDroppedFiles(&fileCount); + char **droppedFiles = LoadDroppedFiles(&fileCount); // Check file extensions for drag-and-drop if ((fileCount == 1) && IsFileExtension(droppedFiles[0], ".raw")) @@ -108,7 +108,7 @@ int main() importWindowActive = true; } - ClearDroppedFiles(); + UnloadDroppedFiles(); } // Check if load button has been pressed diff --git a/examples/style_selector/style_selector.c b/examples/style_selector/style_selector.c index 6144753..e332c99 100644 --- a/examples/style_selector/style_selector.c +++ b/examples/style_selector/style_selector.c @@ -141,11 +141,11 @@ int main() if (IsFileDropped()) { int dropFileCount = 0; - char **droppedFiles = GetDroppedFiles(&dropFileCount); + char **droppedFiles = LoadDroppedFiles(&dropFileCount); if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]); - ClearDroppedFiles(); // Clear internal buffers + UnloadDroppedFiles(); // Clear internal buffers } if (visualStyleActive != prevVisualStyleActive) diff --git a/examples/text_editor/text_editor.c b/examples/text_editor/text_editor.c index 4534751..9b8b013 100644 --- a/examples/text_editor/text_editor.c +++ b/examples/text_editor/text_editor.c @@ -67,7 +67,7 @@ int main(int argc, char **argv) if (IsFileDropped()) { int count = 0; - char **files = GetDroppedFiles(&count); + char **files = LoadDroppedFiles(&count); if (IsFileExtension(files[0], ".ttf") || IsFileExtension(files[0], ".otf") || @@ -86,7 +86,7 @@ int main(int argc, char **argv) } } - ClearDroppedFiles(); + UnloadDroppedFiles(); } //---------------------------------------------------------------------------------- diff --git a/examples/textbox_selection/textbox_selection.c b/examples/textbox_selection/textbox_selection.c index c0c4d18..ecbba2d 100644 --- a/examples/textbox_selection/textbox_selection.c +++ b/examples/textbox_selection/textbox_selection.c @@ -142,7 +142,7 @@ int main(int argc, char **argv) if (IsFileDropped()) { int count = 0; - char **files = GetDroppedFiles(&count); + char **files = LoadDroppedFiles(&count); if (IsFileExtension(files[0], ".ttf") || 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