updated special function to generate custom element graphics
[rocksndiamonds.git] / src / init.c
index e4b15279a401e5024b84b343b1fb16613e1f0f06..38dd52b693e57de59e6d1b043d2b88c4431674d9 100644 (file)
@@ -4734,6 +4734,12 @@ void Execute_Command(char *command)
       Error(ERR_EXIT, "image target directory '%s' not found or not writable",
            global.create_images_dir);
   }
+  else if (strPrefix(command, "create CE image "))
+  {
+    CreateCustomElementImages(&command[16]);
+
+    exit(0);
+  }
 
 #if DEBUG
 #if defined(TARGET_SDL2)