Skip to content

Commit

Permalink
Update controls_test_suite.c
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Jun 29, 2022
1 parent 38236a5 commit 7ef0ae7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/controls_test_suite/controls_test_suite.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ int main()

if (IsFileDropped())
{
int dropFileCount = 0;
char **droppedFiles = LoadDroppedFiles(&dropFileCount);
FilePathList droppedFiles = LoadDroppedFiles();

if ((dropFileCount > 0) && IsFileExtension(droppedFiles[0], ".rgs")) GuiLoadStyle(droppedFiles[0]);
if ((droppedFiles.count > 0) && IsFileExtension(droppedFiles.paths[0], ".rgs")) GuiLoadStyle(droppedFiles.paths[0]);

UnloadDroppedFiles(); // Clear internal buffers
UnloadDroppedFiles(droppedFiles); // Clear internal buffers
}
//----------------------------------------------------------------------------------

Expand Down

0 comments on commit 7ef0ae7

Please sign in to comment.