summaryrefslogtreecommitdiff
path: root/luapatch.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'luapatch.cpp')
-rw-r--r--luapatch.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/luapatch.cpp b/luapatch.cpp
index 369858f..0bee6c2 100644
--- a/luapatch.cpp
+++ b/luapatch.cpp
@@ -417,6 +417,11 @@ virtual int startup(void) throw (GeneralException) {
if (quit)
exit(0);
+
+ Input * fpatch = new Input(patch);
+ fpatch->seek(0);
+
+ new Archive(fpatch);
Output * o;
cdutils * cdutil;
@@ -446,7 +451,6 @@ virtual int startup(void) throw (GeneralException) {
L->push("iso");
liso.push(L);
L->setvar();
- new Archive(patch);
L->load(&Input("main"));
delete b;