mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-05 21:59:18 -05:00
Update rexm.c
This commit is contained in:
@ -526,6 +526,7 @@ int main(int argc, char *argv[])
|
|||||||
else if (strcmp(exCategory, "others") == 0) nextCategoryIndex = -1; // Add to EOF
|
else if (strcmp(exCategory, "others") == 0) nextCategoryIndex = -1; // Add to EOF
|
||||||
|
|
||||||
// Get required example info from example file header (if provided)
|
// Get required example info from example file header (if provided)
|
||||||
|
|
||||||
// NOTE: If no example info is provided (other than category/name), just using some default values
|
// NOTE: If no example info is provided (other than category/name), just using some default values
|
||||||
rlExampleInfo *exInfo = LoadExampleInfo(TextFormat("%s/%s/%s.c", exBasePath, exCategory, exName));
|
rlExampleInfo *exInfo = LoadExampleInfo(TextFormat("%s/%s/%s.c", exBasePath, exCategory, exName));
|
||||||
|
|
||||||
@ -543,7 +544,7 @@ int main(int argc, char *argv[])
|
|||||||
// Add example to collection at the EOF
|
// Add example to collection at the EOF
|
||||||
int endIndex = (int)strlen(exCollectionList);
|
int endIndex = (int)strlen(exCollectionList);
|
||||||
memcpy(exCollectionListUpdated, exCollectionList, endIndex);
|
memcpy(exCollectionListUpdated, exCollectionList, endIndex);
|
||||||
sprintf(exCollectionListUpdated + endIndex, TextFormat("%s;%s;%s;%s;%s;%s;%s;\"%s\";@%s\n",
|
sprintf(exCollectionListUpdated + endIndex, TextFormat("%s;%s;%s;%s;%s;%i;%i;\"%s\";@%s\n",
|
||||||
exInfo->category, exInfo->name, starsText, exInfo->verCreated, exInfo->verUpdated, exInfo->yearCreated, exInfo->yearReviewed, exInfo->author, exInfo->authorGitHub));
|
exInfo->category, exInfo->name, starsText, exInfo->verCreated, exInfo->verUpdated, exInfo->yearCreated, exInfo->yearReviewed, exInfo->author, exInfo->authorGitHub));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -551,8 +552,8 @@ int main(int argc, char *argv[])
|
|||||||
// Add example to collection, at the end of the category list
|
// Add example to collection, at the end of the category list
|
||||||
int categoryIndex = TextFindIndex(exCollectionList, exCategories[nextCategoryIndex]);
|
int categoryIndex = TextFindIndex(exCollectionList, exCategories[nextCategoryIndex]);
|
||||||
memcpy(exCollectionListUpdated, exCollectionList, categoryIndex);
|
memcpy(exCollectionListUpdated, exCollectionList, categoryIndex);
|
||||||
int textWritenSize = sprintf(exCollectionListUpdated + categoryIndex, TextFormat("%s;%s;%s;%s;%s;\"%s\";@%s\n",
|
int textWritenSize = sprintf(exCollectionListUpdated + categoryIndex, TextFormat("%s;%s;%s;%s;%s;%i;%i\"%s\";@%s\n",
|
||||||
exInfo->category, exInfo->name, starsText, exInfo->verCreated, exInfo->verUpdated, exInfo->author, exInfo->authorGitHub));
|
exInfo->category, exInfo->name, starsText, exInfo->verCreated, exInfo->verUpdated, exInfo->yearCreated, exInfo->yearReviewed, exInfo->author, exInfo->authorGitHub));
|
||||||
memcpy(exCollectionListUpdated + categoryIndex + textWritenSize, exCollectionList + categoryIndex, strlen(exCollectionList) - categoryIndex);
|
memcpy(exCollectionListUpdated + categoryIndex + textWritenSize, exCollectionList + categoryIndex, strlen(exCollectionList) - categoryIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user