mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 05:39:18 -05:00
REXM: Review examples source code header metadata for consistency
This commit is contained in:
@ -67,7 +67,6 @@
|
|||||||
|
|
||||||
#define REXM_MAX_RESOURCE_PATHS 256
|
#define REXM_MAX_RESOURCE_PATHS 256
|
||||||
|
|
||||||
|
|
||||||
// Create local commit with changes on example renaming
|
// Create local commit with changes on example renaming
|
||||||
#define RENAME_AUTO_COMMIT_CREATION
|
#define RENAME_AUTO_COMMIT_CREATION
|
||||||
|
|
||||||
@ -640,6 +639,10 @@ int main(int argc, char *argv[])
|
|||||||
FileRename(TextFormat("%s/%s/%s.png", exBasePath, exCategory, exName),
|
FileRename(TextFormat("%s/%s/%s.png", exBasePath, exCategory, exName),
|
||||||
TextFormat("%s/%s/%s.png", exBasePath, exCategory, exRename));
|
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...
|
// NOTE: Example resource files do not need to be changed...
|
||||||
// unless the example is moved from one caegory to another
|
// unless the example is moved from one caegory to another
|
||||||
|
|
||||||
@ -1358,6 +1361,18 @@ static int UpdateRequiredFiles(void)
|
|||||||
{
|
{
|
||||||
int result = 0;
|
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
|
// Edit: raylib/examples/Makefile --> Update from collection
|
||||||
//------------------------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------------------------
|
||||||
char *mkText = LoadFileText(TextFormat("%s/Makefile", exBasePath));
|
char *mkText = LoadFileText(TextFormat("%s/Makefile", exBasePath));
|
||||||
|
|||||||
Reference in New Issue
Block a user