equal
deleted
inserted
replaced
184 |
184 |
185 /* Copy GRF details from scanned list */ |
185 /* Copy GRF details from scanned list */ |
186 GRFConfig *c = CallocT<GRFConfig>(1); |
186 GRFConfig *c = CallocT<GRFConfig>(1); |
187 *c = *src; |
187 *c = *src; |
188 c->filename = strdup(src->filename); |
188 c->filename = strdup(src->filename); |
189 if (src->name != NULL) c->name = strdup(src->name); |
189 if (src->full_path != NULL) c->full_path = strdup(src->full_path); |
190 if (src->info != NULL) c->info = strdup(src->info); |
190 if (src->name != NULL) c->name = strdup(src->name); |
|
191 if (src->info != NULL) c->info = strdup(src->info); |
191 c->next = NULL; |
192 c->next = NULL; |
192 |
193 |
193 /* Append GRF config to configuration list */ |
194 /* Append GRF config to configuration list */ |
194 *list = c; |
195 *list = c; |
195 |
196 |
294 SetWindowWidgetDisabledState(w, SNGRFS_APPLY_CHANGES, !WP(w, newgrf_d).editable); |
295 SetWindowWidgetDisabledState(w, SNGRFS_APPLY_CHANGES, !WP(w, newgrf_d).editable); |
295 } |
296 } |
296 |
297 |
297 |
298 |
298 /** Callback function for the newgrf 'apply changes' confirmation window |
299 /** Callback function for the newgrf 'apply changes' confirmation window |
299 * @param yes_clicked boolean value, true when yes was clicked, false otherwise */ |
300 * @param w Window which is calling this callback |
|
301 * @param confirmed boolean value, true when yes was clicked, false otherwise |
|
302 */ |
300 static void NewGRFConfirmationCallback(Window *w, bool confirmed) |
303 static void NewGRFConfirmationCallback(Window *w, bool confirmed) |
301 { |
304 { |
302 if (confirmed) { |
305 if (confirmed) { |
303 newgrf_d *nd = &WP(w, newgrf_d); |
306 newgrf_d *nd = &WP(w, newgrf_d); |
304 GRFConfig *c; |
307 GRFConfig *c; |