added definition for string constant
authorHolger Schemel <info@artsoft.org>
Mon, 28 Mar 2022 17:36:32 +0000 (19:36 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 28 Mar 2022 17:36:32 +0000 (19:36 +0200)
src/editor.c
src/libgame/system.h

index 1fd4b463ce1280b3a93fdf5c69aa2aefac166ae0..106176b93fa306d1e84cbbee3aaacbc0b4a075ab 100644 (file)
@@ -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;
 
index 72d037cd4063a841e8704726b1c19235ed87b029..d3ec73c19792a9c7704dcd0dfa297419d7baa823 100644 (file)
 #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"