Skip to content

Commit

Permalink
Add support for '#' comments as well as ';'.
Browse files Browse the repository at this point in the history
  • Loading branch information
fragglet committed Jun 6, 2024
1 parent 8d9d2da commit 632b7e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/textures/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,10 @@ static char *ReadLine(uint8_t *buf, size_t buf_len, unsigned int *offset)
if (p != NULL) {
*p = '\0';
}
p = strchr(result, '#');
if (p != NULL) {
*p = '\0';
}

StripTrailingSpaces(result);
StringUpper(result);
Expand Down

0 comments on commit 632b7e5

Please sign in to comment.