فهرست منبع

Update controls_test_suite.c

Ray 3 سال پیش
والد
کامیت
7ef0ae713b
1فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 4
      examples/controls_test_suite/controls_test_suite.c

+ 3 - 4
examples/controls_test_suite/controls_test_suite.c

@@ -128,12 +128,11 @@ int main()
 
 
         if (IsFileDropped())
         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
         }
         }
         //----------------------------------------------------------------------------------
         //----------------------------------------------------------------------------------