sprintf(basename1, "%04d.bmp", i);
sprintf(basename2, "%04ds.bmp", i);
- filename1 = getPath2(global.create_images_dir, basename1);
- filename2 = getPath2(global.create_images_dir, basename2);
+ filename1 = getPath2(global.create_sketch_images_dir, basename1);
+ filename2 = getPath2(global.create_sketch_images_dir, basename2);
DrawSizedElement(0, 0, element, TILESIZE);
BlitBitmap(drawto, bitmap1, SX, SY, TILEX, TILEY, 0, 0);
global.convert_leveldir = NULL;
global.dumplevel_leveldir = NULL;
global.dumptape_leveldir = NULL;
- global.create_images_dir = NULL;
+ global.create_sketch_images_dir = NULL;
global.frames_per_second = 0;
global.show_frames_per_second = FALSE;
program.headless = TRUE;
}
- else if (strPrefix(command, "create images "))
+ else if (strPrefix(command, "create sketch images "))
{
- global.create_images_dir = getStringCopy(&command[14]);
+ global.create_sketch_images_dir = getStringCopy(&command[21]);
- if (access(global.create_images_dir, W_OK) != 0)
+ if (access(global.create_sketch_images_dir, W_OK) != 0)
Fail("image target directory '%s' not found or not writable",
- global.create_images_dir);
+ global.create_sketch_images_dir);
}
else if (strPrefix(command, "create CE image "))
{
DumpTapes();
return;
}
- else if (global.create_images_dir)
+ else if (global.create_sketch_images_dir)
{
CreateLevelSketchImages();
return;
" \"autofix LEVELDIR [NR ...]\" test and fix tapes for LEVELDIR\n"
" \"patch tapes MODE LEVELDIR [NR]\" patch level tapes for LEVELDIR\n"
" \"convert LEVELDIR [NR]\" convert levels in LEVELDIR\n"
- " \"create images DIRECTORY\" write BMP images to DIRECTORY\n"
+ " \"create sketch images DIRECTORY\" write BMP images to DIRECTORY\n"
" \"create CE image DIRECTORY\" write BMP image to DIRECTORY\n"
"\n",
program.command_basename);
char *dumptape_leveldir;
int dumptape_level_nr;
- char *create_images_dir;
+ char *create_sketch_images_dir;
int num_toons;