@@ -627,8 +627,9 @@ static void UpdateDrawFrame(void)
627627 {
628628 for (unsigned int i = 0 ; i < droppedFiles .count ; i ++ )
629629 {
630- if (IsPathFile (droppedFiles .count ))
630+ if (IsPathFile (droppedFiles .paths [ i ] ))
631631 {
632+
632633 if (IsFileExtension (droppedFiles .paths [i ], ".c;.h;.cpp;.hpp" ))
633634 {
634635 // Add files to source list
@@ -645,7 +646,7 @@ static void UpdateDrawFrame(void)
645646 }
646647 else // Path is a directory
647648 {
648- FilePathList list = LoadDirectoryFilesEx (droppedFiles .count , "FILES*" , true);
649+ FilePathList list = LoadDirectoryFilesEx (droppedFiles .paths [ i ] , "FILES*" , true);
649650
650651 for (int i = 0 ; i < list .count ; i ++ )
651652 {
@@ -963,7 +964,7 @@ static void UpdateDrawFrame(void)
963964 GuiSetStyle (TOGGLE , TEXT_ALIGNMENT , TEXT_ALIGN_LEFT );
964965 GuiSetStyle (TOGGLE , TEXT_PADDING , 8 );
965966 GuiToggle ((Rectangle ){ 16 , 536 + 26 + (28 + 2 )* i + filesPanelScroll .y , GetScreenWidth () - 24 - 24 , 28 },
966- TextFormat ("#10#%s" , TextReplace (input .srcFilePaths [i ], "project_name" , rpcGetText (project , "PROJECT_INTERNAL_NAME" ))), false );
967+ TextFormat ("#10#%s" , TextReplace (input .srcFilePaths [i ], "project_name" , rpcGetText (project , "PROJECT_INTERNAL_NAME" ))), NULL );
967968 GuiSetStyle (TOGGLE , TEXT_PADDING , 0 );
968969 GuiSetStyle (TOGGLE , TEXT_ALIGNMENT , TEXT_ALIGN_CENTER );
969970 }
@@ -981,7 +982,7 @@ static void UpdateDrawFrame(void)
981982 GuiSetStyle (TOGGLE , TEXT_ALIGNMENT , TEXT_ALIGN_LEFT );
982983 GuiSetStyle (TOGGLE , TEXT_PADDING , 8 );
983984 GuiToggle ((Rectangle ){ 16 , 536 + 26 + (28 + 2 )* (i + input .srcFileCount ) + filesPanelScroll .y , GetScreenWidth () - 24 - 24 , 28 },
984- TextFormat ("#200#%s" , input .assetFilePaths [i ]), false );
985+ TextFormat ("#200#%s" , input .assetFilePaths [i ]), NULL );
985986 GuiSetStyle (TOGGLE , TEXT_PADDING , 0 );
986987 GuiSetStyle (TOGGLE , TEXT_ALIGNMENT , TEXT_ALIGN_CENTER );
987988
@@ -1206,7 +1207,7 @@ static void UpdateDrawFrame(void)
12061207 {
12071208 // Scan code file looking for assets
12081209 int assetCount = 0 ;
1209- const char * * assetPaths = LoadSourceAssetPaths (multiFileList [i ], & assetCount );
1210+ char * * assetPaths = LoadSourceAssetPaths (multiFileList [i ], & assetCount );
12101211
12111212 for (int a = 0 ; a < assetCount ; a ++ )
12121213 {
@@ -1267,13 +1268,13 @@ static void UpdateDrawFrame(void)
12671268 // so the asset can be related to equivalent source path
12681269 rpcProjectInput temp = rpcLoadProjectInput ();
12691270
1270- for (int i = 0 ; i < pathList .count ; i ++ )
1271+ for (unsigned int i = 0 ; i < pathList .count ; i ++ )
12711272 {
12721273 if (IsFileExtension (pathList .paths [i ], ".c;.h;.cpp;.hpp" ))
12731274 {
12741275 // Scan code file looking for assets
12751276 int assetCount = 0 ;
1276- const char * * assetPaths = LoadSourceAssetPaths (pathList .paths [i ], & assetCount );
1277+ char * * assetPaths = LoadSourceAssetPaths (pathList .paths [i ], & assetCount );
12771278
12781279 for (int a = 0 ; a < assetCount ; a ++ )
12791280 {
@@ -2014,7 +2015,7 @@ static void GenerateProject(rpcProjectConfig project, rpcProjectInput input, con
20142015 for (int i = 0 ; i < input .srcFileCount ; i ++ )
20152016 {
20162017 // Get expected destination file path for source input files
2017- char * dstFilePath = TextFormat ("%s/%s/%s/%s" , outPath , config -> Project .repoName , config -> Project .sourcePath , GetFileName (input .srcFilePaths [i ]));
2018+ const char * dstFilePath = TextFormat ("%s/%s/%s/%s" , outPath , config -> Project .repoName , config -> Project .sourcePath , GetFileName (input .srcFilePaths [i ]));
20182019
20192020 // Check if source file name contains "project_name"
20202021 if (TextFindIndex (input .srcFilePaths [i ], "project_name" ) > 0 )
@@ -2039,7 +2040,7 @@ static void GenerateProject(rpcProjectConfig project, rpcProjectInput input, con
20392040 for (int i = 0 ; i < input .assetFileCount ; i ++ )
20402041 {
20412042 // Get expected destination file path
2042- char * dstFilePath = TextFormat ("%s/%s/%s/%s" , outPath , config -> Project .repoName , config -> Project .assetsPath , GetFileName (input .assetFilePaths [i ]));
2043+ const char * dstFilePath = TextFormat ("%s/%s/%s/%s" , outPath , config -> Project .repoName , config -> Project .assetsPath , GetFileName (input .assetFilePaths [i ]));
20432044 FileCopy (input .assetFilePaths [i ], dstFilePath ); // Copy always with original name
20442045 }
20452046
@@ -2397,7 +2398,7 @@ static void GenerateProject(rpcProjectConfig project, rpcProjectInput input, con
23972398 // TODO: Generate .icns from input .ico/.png
23982399 FileCopy (TextFormat ("%s/src/project_name.icns" , templatePath ),
23992400 TextFormat ("%s/%s/%s/%s.icns" , outPath , config -> Project .repoName , config -> Project .sourcePath , config -> Project .internalName ));
2400- LOG ("INFO: Added icon file (.icns) successfully (macOS)\n" , config -> Project . internalName );
2401+ LOG ("INFO: Added icon file (.icns) successfully (macOS)\n" );
24012402
24022403 // Update src/Info.plist
24032404 fileText = LoadFileText (TextFormat ("%s/src/Info.plist" , templatePath ));
0 commit comments