+2004-11-13
+ * added use of "editorsetup.conf" for different level sets
+
2004-10-26
* added auto-detection for various types of Emerald Mine level files
-#define COMPILE_DATE_STRING "[2004-10-26 02:14]"
+#define COMPILE_DATE_STRING "[2004-11-13 21:37]"
checked_free(editor_elements);
+#if 0
if (!initialized)
+#else
+ /* reload user defined element list for each invocation of level editor */
+#endif
{
/* initialize optional user defined element list */
LoadUserDefinedEditorElementList(&editor_el_user_defined_ptr,
for (y = top; y < top + MAX_BUF_YSIZE; y++)
{
dy = y % MAX_BUF_YSIZE;
+
for (x = left; x < left + MAX_BUF_XSIZE; x++)
{
dx = x % MAX_BUF_XSIZE;
static char *filename = NULL;
checked_free(filename);
+ filename = getPath2(getCurrentLevelDir(), EDITORSETUP_FILENAME);
+ if (fileExists(filename))
+ return filename;
+
+ checked_free(filename);
filename = getPath2(getSetupDir(), EDITORSETUP_FILENAME);
return filename;
char *basenames[] =
{
"README",
- "README.txt",
"README.TXT",
+ "README.txt",
"Readme",
"Readme.txt",
"readme",
for (i = 0; basenames[i] != NULL; i++)
{
checked_free(filename);
-
filename = getPath2(getCurrentLevelDir(), basenames[i]);
+
if (fileExists(filename))
return filename;
}
#endif
{ TYPE_SWITCH, &setup.editor.el_boulderdash, "BoulderDash:" },
{ TYPE_SWITCH, &setup.editor.el_emerald_mine, "Emerald Mine:" },
+ { TYPE_SWITCH, &setup.editor.el_emerald_mine_club,"E.M. Club:" },
{ TYPE_SWITCH, &setup.editor.el_more, "More:" },
{ TYPE_SWITCH, &setup.editor.el_sokoban, "Sokoban:" },
{ TYPE_SWITCH, &setup.editor.el_supaplex, "Supaplex:" },