diff options
author | Pixel <Pixel> | 2002-08-25 14:39:48 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2002-08-25 14:39:48 +0000 |
commit | 38d60726082b04e79edae1c8c797c6dcb8314504 (patch) | |
tree | 4a056a158c6fc21c29dd8d8ed94c010a25cee19a /Xenogears | |
parent | 1b0a5db816b7610c83615e93095155b1709f55da (diff) |
Workiiiiiiiiiiiiiiiiiing!!!!
Diffstat (limited to 'Xenogears')
-rwxr-xr-x | Xenogears/Makefile | 8 | ||||
-rw-r--r-- | Xenogears/main_dump.cpp | 12 |
2 files changed, 14 insertions, 6 deletions
diff --git a/Xenogears/Makefile b/Xenogears/Makefile index 50cc0f4..0f4a0bc 100755 --- a/Xenogears/Makefile +++ b/Xenogears/Makefile @@ -1,18 +1,18 @@ #!/usr/bin/make -f -CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -I../includes +CPPFLAGS=-Wall -g -O3 -mcpu=i686 -pedantic -pedantic-errors -I../includes -DHAVE_ZLIB CXX=g++ CC=gcc -LIBS=-lz -LDFLAGS=${LIBS} +LIBS=-lz -lefence +LDFLAGS=${LIBS} `pkg-config --libs glib-2.0` TARGET = reinsert main_dump Decrypt script-comp script-dec XenoCD1.sqr XenoCD2.sqr compil compil-2 all: ${TARGET} main_dump: main_dump.o ../includes/cdutils.h ../includes/generic.h ../includes/yazedc.h ../lib/lib.a ../generic/generic.a Makefile - ${CXX} ${LDFLAGS} main_dump.o ../lib/lib.a ../generic/generic.a -o main_dump + ${CXX} main_dump.o ../lib/lib.a ../generic/generic.a -o main_dump ${LDFLAGS} reinsert: reinsert.o ../includes/cdutils.h ../includes/generic.h ../includes/yazedc.h ../lib/lib.a ../generic/generic.a Makefile ${CXX} ${LDFLAGS} reinsert.o ../lib/lib.a ../generic/generic.a -o reinsert 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()); + } +} |