Update rexm.c

This commit is contained in:
Ray
2026-04-01 10:17:41 +02:00
parent eb4f1a6da0
commit 4799cab772

View File

@ -2573,7 +2573,7 @@ static char **LoadExampleResourcePaths(const char *srcFilePath, int *resPathCoun
} }
/* /*
// Some resources could require linked resources: .fnt --> .png, .mtl --> .png, .gltf --> .png // WARNING: Some resources could require linked resources: .fnt --> .png, .mtl --> .png, .gltf --> .png
// So doing a recursive pass to scan possible files with second resources // So doing a recursive pass to scan possible files with second resources
int currentAssetCounter = resCounter; int currentAssetCounter = resCounter;
for (int i = 0; i < currentAssetCounter; i++) for (int i = 0; i < currentAssetCounter; i++)
@ -2581,7 +2581,7 @@ static char **LoadExampleResourcePaths(const char *srcFilePath, int *resPathCoun
if (IsFileExtension(paths[i], ".fnt;.gltf")) if (IsFileExtension(paths[i], ".fnt;.gltf"))
{ {
int assetCount2 = 0; int assetCount2 = 0;
// ERROR: srcFilePath changes on rcursive call and TextFormat() static arrays are oveerride // ERROR: srcFilePath changes on rcursive call and TextFormat() static arrays are override
char **assetPaths2 = LoadExampleResourcePaths(TextFormat("%s/%s", GetDirectoryPath(srcFilePath), paths[i]), &assetCount2); char **assetPaths2 = LoadExampleResourcePaths(TextFormat("%s/%s", GetDirectoryPath(srcFilePath), paths[i]), &assetCount2);
for (int j = 0; j < assetCount2; j++) for (int j = 0; j < assetCount2; j++)