mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-11 14:08:48 +01:00
Update rexm.c
This commit is contained in:
@ -570,7 +570,7 @@ int main(int argc, char *argv[])
|
||||
// -----------------------------------------------------------------------------------------
|
||||
|
||||
// Add example to the collection list, if not already there
|
||||
// NOTE: Required format: shapes;shapes_basic_shapes;★☆☆☆;1.0;4.2;2014;2025;"Ray";@raysan5
|
||||
// NOTE: Required format: shapes;shapes_basic_shapes;★☆☆☆;1.0;4.2;2014;2026;"Ray";@raysan5
|
||||
//------------------------------------------------------------------------------------------------
|
||||
char *exCollectionList = LoadFileText(exCollectionFilePath);
|
||||
if (TextFindIndex(exCollectionList, exName) == -1) // Example not found
|
||||
@ -2440,7 +2440,7 @@ static void UnloadExampleInfo(rlExampleInfo *exInfo)
|
||||
}
|
||||
|
||||
// raylib example line info parser
|
||||
// Parses following line format: core;core_basic_window;★☆☆☆;1.0;1.0;2013;2025;"Ray";@raysan5
|
||||
// Parses following line format: core;core_basic_window;★☆☆☆;1.0;1.0;2013;2026;"Ray";@raysan5
|
||||
static int ParseExampleInfoLine(const char *line, rlExampleInfo *entry)
|
||||
{
|
||||
#define MAX_EXAMPLE_INFO_LINE_LEN 512
|
||||
@ -2452,7 +2452,10 @@ static int ParseExampleInfoLine(const char *line, rlExampleInfo *entry)
|
||||
int tokenCount = 0;
|
||||
char **tokens = TextSplit(line, ';', &tokenCount);
|
||||
|
||||
if (tokenCount != 9) LOG("REXM: WARNING: Example collection line contains invalid number of tokens: %i\n", tokenCount);
|
||||
if (tokenCount != 9)
|
||||
{
|
||||
LOG("REXM: WARNING: Example collection line contains invalid number of tokens: %i\n", tokenCount);
|
||||
}
|
||||
|
||||
// Get category and name
|
||||
strcpy(entry->category, tokens[0]);
|
||||
|
||||
Reference in New Issue
Block a user