char *romset_file_list(const char **resource_list) { char *list; const char *s; list = lib_stralloc(""); s = *resource_list++; while (s != NULL) { int enable; char *line; resources_get_int_sprintf("Romset%s", &enable, s); if (enable != 0) { line = resources_write_item_to_string(s, ARCHDEP_LINE_DELIMITER); if (line != NULL) util_addline_free(&list, line); } s = *resource_list++; } return list; }
char *romset_file_list(const char **resource_list) { char *list; const char *s; list = lib_stralloc(""); s = *resource_list++; while (s != NULL) { char *line; line = resources_write_item_to_string(s, ARCHDEP_LINE_DELIMITER); if (line != NULL) { util_addline_free(&list, line); } s = *resource_list++; } return list; }