mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-26 00:27:25 -04:00
various rlparser fixes (#5794)
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
# rlparser - raylib parser
|
||||
|
||||
This parser scans [`raylib.h`](../src/raylib.h) to get information about `defines`, `structs`, `enums` and `functions`.
|
||||
This parser scans [`raylib.h`](../../src/raylib.h) to get information about `defines`, `structs`, `enums` and `functions`.
|
||||
All data is separated into parts, usually as strings. The following types are used for data:
|
||||
|
||||
- `struct DefineInfo`
|
||||
|
||||
@ -202,7 +202,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc > 1) ProcessCommandLine(argc, argv);
|
||||
|
||||
const char *raylibhPath = "../src/raylib.h\0";
|
||||
const char *raylibhPath = "../../src/raylib.h\0";
|
||||
const char *raylibapiPath = "raylib_api.txt\0";
|
||||
const char *rlapiPath = "RLAPI\0";
|
||||
if (inFileName[0] == '\0') MemoryCopy(inFileName, raylibhPath, TextLength(raylibhPath) + 1);
|
||||
@ -1154,7 +1154,7 @@ static void ProcessCommandLine(int argc, char *argv[])
|
||||
else if (IsTextEqual(argv[i + 1], "JSON\0", 5)) outputFormat = JSON;
|
||||
else if (IsTextEqual(argv[i + 1], "XML\0", 4)) outputFormat = XML;
|
||||
else if (IsTextEqual(argv[i + 1], "LUA\0", 4)) outputFormat = LUA;
|
||||
else if (IsTextEqual(argv[i + 1], "CODE\0", 4)) outputFormat = CODE;
|
||||
else if (IsTextEqual(argv[i + 1], "CODE\0", 5)) outputFormat = CODE;
|
||||
}
|
||||
else printf("WARNING: No format parameters provided\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user