mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
Update rexm.c
This commit is contained in:
@ -370,15 +370,13 @@ int main(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
// Verify example exists in collection to be removed
|
// Verify example exists in collection to be removed
|
||||||
char *exColInfo = LoadFileText(exCollectionFilePath);
|
char *exColInfo = LoadFileText(exCollectionFilePath);
|
||||||
if ((TextFindIndex(exColInfo, argv[2]) != -1) && // Example in the collection
|
if (TextFindIndex(exColInfo, argv[2]) != -1) // Example in the collection
|
||||||
(TextFindIndex(exName, "_") != -1)) // Valid example name
|
|
||||||
{
|
{
|
||||||
|
|
||||||
strcpy(exName, argv[2]); // Register example name for removal
|
strcpy(exName, argv[2]); // Register example name for removal
|
||||||
strncpy(exCategory, exName, TextFindIndex(exName, "_"));
|
strncpy(exCategory, exName, TextFindIndex(exName, "_"));
|
||||||
opCode = OP_BUILD;
|
opCode = OP_BUILD;
|
||||||
}
|
}
|
||||||
else LOG("WARNING: REMOVE: Example not available in the collection\n");
|
else LOG("WARNING: BUILD: Example not available in the collection\n");
|
||||||
UnloadFileText(exColInfo);
|
UnloadFileText(exColInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user