--- psiconv/trunk/program/extra/empty.c 2000/12/31 01:36:30 88 +++ psiconv/trunk/program/extra/empty.c 2014/10/22 19:53:40 351 @@ -1,6 +1,6 @@ /* empty.c - Part of psiconv, a PSION 5 file formats converter - Copyright (c) 1999 Frodo Looijaard + Copyright (c) 1999-2014 Frodo Looijaard This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -20,6 +20,7 @@ #include #include +#include void help(void) { @@ -34,6 +35,8 @@ psiconv_buffer buf; psiconv_file psionfile; psiconv_file_type_t type=0; + psiconv_config config; + if (argc < 3) help(); @@ -46,9 +49,11 @@ help(); } + config = psiconv_config_default(); + psiconv_config_read(NULL,&config); psionfile = psiconv_empty_file(type); - if (psiconv_write(&buf,psionfile)) { + if (psiconv_write(config,&buf,psionfile)) { fprintf(stderr,"Generate error\n"); exit(1); }