diff options
Diffstat (limited to 'Xenogears/main_dump.cpp')
-rw-r--r-- | Xenogears/main_dump.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Xenogears/main_dump.cpp b/Xenogears/main_dump.cpp index 60c15df..e380f7a 100644 --- a/Xenogears/main_dump.cpp +++ b/Xenogears/main_dump.cpp @@ -53,7 +53,7 @@ struct t_sequence { String title, iso_filename, prefix; unsigned long iso_size; unsigned int nb_records, nb_seqs = 0; -struct t_sequence sequences[1000]; +struct t_sequence sequences[100]; long check_iso(Handle * f_iso); void read_files(Handle * f_iso); @@ -62,7 +62,7 @@ int process_def_file(Handle * f_def); Byte user_data[2352]; -int main(int argc, char **argv) +int Main(int argc, char **argv) { Handle * f_def, * f_iso; @@ -266,3 +266,11 @@ void file_dump(Handle * f_iso, unsigned long debut, unsigned long taille, long n delete f_out; printm(M_BARE, " (*) Dumped file number %4ld - type \"" + sequences[seq].name + "\" \r", num); } + +int main(int argc, char ** argv) { + try { + Main(argc, argv); + } catch (GeneralException e) { + fprintf(stderr, "Main got an unexpected exception: %s\n", e.GetMsg()); + } +} |