summaryrefslogtreecommitdiff
path: root/MegamanX5/unarc.cpp
diff options
context:
space:
mode:
authorpixel <pixel>2004-11-27 21:44:15 +0000
committerpixel <pixel>2004-11-27 21:44:15 +0000
commit50f0dd331f8168fb5b2cd60c70178fad627b7fb6 (patch)
tree65fcec7bd507791f0db8a3af1b60ad9ac631f4a7 /MegamanX5/unarc.cpp
parentf1df76865d1751469deff19e62255d50a814f183 (diff)
Large dos2unix commit...
Diffstat (limited to 'MegamanX5/unarc.cpp')
-rw-r--r--MegamanX5/unarc.cpp80
1 files changed, 40 insertions, 40 deletions
diff --git a/MegamanX5/unarc.cpp b/MegamanX5/unarc.cpp
index ea5e498..098af51 100644
--- a/MegamanX5/unarc.cpp
+++ b/MegamanX5/unarc.cpp
@@ -1,40 +1,40 @@
-#include <stdlib.h>
-#include "generic.h"
-#include "Input.h"
-#include "Output.h"
-#include "Main.h"
-
-CODE_BEGINS
-virtual int startup() throw (GeneralException) {
- Handle * f, * o;
-
- int i = 0;
-
- f = new Input(argv[1]);
-
- int offset = 0;
- while (1) {
- int sector, size;
- f->seek(offset, SEEK_SET);
- f->read(&sector, 4);
- f->read(&size, 4);
- offset += 8;
-
- if (!sector)
- break;
-
- f->seek(sector <<= 9, SEEK_SET);
-
- String fname;
- fname.set("unarc-%03i.out", i);
- o = new Output(fname);
- copy(f, o, size);
- delete o;
- i++;
- }
-
- delete f;
-
- return -1;
-}
-CODE_ENDS
+#include <stdlib.h>
+#include "generic.h"
+#include "Input.h"
+#include "Output.h"
+#include "Main.h"
+
+CODE_BEGINS
+virtual int startup() throw (GeneralException) {
+ Handle * f, * o;
+
+ int i = 0;
+
+ f = new Input(argv[1]);
+
+ int offset = 0;
+ while (1) {
+ int sector, size;
+ f->seek(offset, SEEK_SET);
+ f->read(&sector, 4);
+ f->read(&size, 4);
+ offset += 8;
+
+ if (!sector)
+ break;
+
+ f->seek(sector <<= 9, SEEK_SET);
+
+ String fname;
+ fname.set("unarc-%03i.out", i);
+ o = new Output(fname);
+ copy(f, o, size);
+ delete o;
+ i++;
+ }
+
+ delete f;
+
+ return -1;
+}
+CODE_ENDS