shithub: rgbds

Download patch

ref: af60e7f74a08e54ebe8ddf24f64a0323519cab91
parent: 2f16e82cf71d041043e6b8fcd8c49a9cdfae97a7
author: ISSOtm <[email protected]>
date: Sat Mar 14 20:40:45 EDT 2020

Allow charmap creation even if its base doesn't exist

--- a/src/asm/charmap.c
+++ b/src/asm/charmap.c
@@ -67,12 +67,10 @@
 	if (baseName != NULL) {
 		struct Charmap **ppBase = charmap_Get(baseName);
 
-		if (*ppBase == NULL) {
+		if (*ppBase == NULL)
 			yyerror("Base charmap '%s' doesn't exist", baseName);
-			return NULL;
-		}
-
-		pBase = *ppBase;
+		else
+			pBase = *ppBase;
 	}
 
 	struct Charmap **ppCharmap = charmap_Get(name);