diff --git a/tools/rexm/rexm.c b/tools/rexm/rexm.c index e9b3a02c6..b81f391ed 100644 --- a/tools/rexm/rexm.c +++ b/tools/rexm/rexm.c @@ -67,7 +67,6 @@ #define REXM_MAX_RESOURCE_PATHS 256 - // Create local commit with changes on example renaming #define RENAME_AUTO_COMMIT_CREATION @@ -640,6 +639,10 @@ int main(int argc, char *argv[]) FileRename(TextFormat("%s/%s/%s.png", exBasePath, exCategory, exName), TextFormat("%s/%s/%s.png", exBasePath, exCategory, exRename)); + // TODO: Edit: Update example source code metadata + //rlExampleInfo *info = LoadExamplesData(exCollectionFilePath, exRename, false, NULL); // TODO: Load one example from collection + //UpdateSourceMetadata(TextFormat("%s/%s/%s.c", exBasePath, exCategory, exRename), info); + // NOTE: Example resource files do not need to be changed... // unless the example is moved from one caegory to another @@ -1358,6 +1361,18 @@ static int UpdateRequiredFiles(void) { int result = 0; + // Edit: Example source code metadata for consistency + //------------------------------------------------------------------------------------------------ + int exListCount = 0; + rlExampleInfo *exList = LoadExamplesData(exCollectionFilePath, "ALL", true, &exListCount); + for (int i = 0; i < exListCount; i++) + { + rlExampleInfo *info = &exList[i]; + UpdateSourceMetadata(TextFormat("%s/%s/%s.c", exBasePath, info->category, info->name), info); + } + UnloadExamplesData(exList); + //------------------------------------------------------------------------------------------------ + // Edit: raylib/examples/Makefile --> Update from collection //------------------------------------------------------------------------------------------------ char *mkText = LoadFileText(TextFormat("%s/Makefile", exBasePath));