From 1ae19b5d04f361280bff1058717afed4dba059ee Mon Sep 17 00:00:00 2001 From: Sara Date: Mon, 17 Jul 2023 00:38:49 +0200 Subject: [PATCH] adjusted _parse_key to also allow for configs without arguments --- src/corelib/scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/scene.c b/src/corelib/scene.c index f638bf4..0d6b57e 100644 --- a/src/corelib/scene.c +++ b/src/corelib/scene.c @@ -82,7 +82,7 @@ void _parse_key(FILE* file, char* out) { char c; do { c = fgetc(file); - if(c == ':') { + if(c == ':' || c == ';') { *out = '\0'; } else if(c == '#') { freadto(file, '\n'); @@ -90,7 +90,7 @@ void _parse_key(FILE* file, char* out) { *out = c; ++out; } - } while(c != ':'); + } while(c != ':' && c != ';'); } static