idf cleanup
This commit is contained in:
parent
0c1f806c8d
commit
c53f7dcb72
|
@ -45,7 +45,7 @@ RESOURCE FILESELECTIONDIALOG r_file_selection_dialog {
|
||||||
FILTER {
|
FILTER {
|
||||||
filter_type = EFilenameFilter;
|
filter_type = EFilenameFilter;
|
||||||
filter_style = EInclusiveFilter;
|
filter_style = EInclusiveFilter;
|
||||||
filter_data = { "*.lua", "*.zip" };
|
filter_data = { "*.lua", "*.zip", "*.idf" };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -262,7 +262,16 @@ int main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idf_sw) {
|
if (idf_sw) {
|
||||||
idf_create("data.idf", idf_sw);
|
char *p = malloc(strlen(idf_sw) + 5);
|
||||||
|
if (p) {
|
||||||
|
char *b;
|
||||||
|
strcpy(p, idf_sw);
|
||||||
|
b = basename(p);
|
||||||
|
strcat(b, ".idf");
|
||||||
|
idf_create(b, idf_sw);
|
||||||
|
free(p);
|
||||||
|
} else
|
||||||
|
idf_create("data.idf", idf_sw);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
menu_langs_lookup(dirpath(LANG_PATH));
|
menu_langs_lookup(dirpath(LANG_PATH));
|
||||||
|
|
Loading…
Reference in a new issue