From be18447f019fcb3ccbdcd5f804852815428a7f4b Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 28 Mar 2022 19:36:32 +0200 Subject: [PATCH] added definition for string constant --- src/editor.c | 2 +- src/libgame/system.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/editor.c b/src/editor.c index 1fd4b463..106176b9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -5610,7 +5610,7 @@ static char *getElementInfoText(int element) static char *getElementDescriptionFilenameExt(char *basename) { - char *elements_subdir = "elements"; + char *elements_subdir = ELEMENTS_DIRECTORY; static char *elements_subdir2 = NULL; static char *filename = NULL; diff --git a/src/libgame/system.h b/src/libgame/system.h index 72d037cd..d3ec73c1 100644 --- a/src/libgame/system.h +++ b/src/libgame/system.h @@ -654,6 +654,7 @@ #define TAPES_DIRECTORY "tapes" #define SCORES_DIRECTORY "scores" #define DOCS_DIRECTORY "docs" +#define ELEMENTS_DIRECTORY "elements" #define CACHE_DIRECTORY "cache" #define CONF_DIRECTORY "conf" #define NETWORK_DIRECTORY "network" -- 2.34.1