scalar_t last_hand_x = 0, last_hand_y = 0;
Polygon *last_grabbing = 0;
bool no_window = false;
+ bool save_frames = false;
//////////////////////////////////////////////////////////////////////
// Parsing the shell arguments
strcpy(intelligence_save_file, variable_value);
} else if(strcmp(variable_name, "load-file") == 0) {
strcpy(intelligence_load_file, variable_value);
+ } else if(strcmp(variable_name, "save-frames") == 0) {
+ save_frames = true;
} else if(strcmp(variable_name, "action-mode") == 0) {
if(strcmp(variable_value, "idle") == 0) {
action_mode = IDLE;
fd_set fds;
#ifdef CAIRO_SUPPORT
- if(tick < 100) {
+ if(save_frames) {
char buffer[1024];
sprintf(buffer, "frame-%06d.png", tick);
FILE *file = fopen(buffer, "w");