summaryrefslogtreecommitdiff
path: root/Xenogears/script-dec.cpp
diff options
context:
space:
mode:
authorPixel <Pixel>2002-09-27 12:17:57 +0000
committerPixel <Pixel>2002-09-27 12:17:57 +0000
commitbfa5de7eccf4604ff8217f619e9685a09e80d545 (patch)
treea5be5de750ac611145f459a09bda902c3dbc1a70 /Xenogears/script-dec.cpp
parent60c1003845035ad4cd0e9ea50862bad7626faf0e (diff)
The week-without-the-network changes
Diffstat (limited to 'Xenogears/script-dec.cpp')
-rw-r--r--Xenogears/script-dec.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/Xenogears/script-dec.cpp b/Xenogears/script-dec.cpp
index 81dfea3..84e55f0 100644
--- a/Xenogears/script-dec.cpp
+++ b/Xenogears/script-dec.cpp
@@ -5,6 +5,15 @@
#include "String.h"
#include "Input.h"
#include "Output.h"
+#include "Main.h"
+
+CODE_BEGINS
+public:
+Appli() : lzss_o(new lzss()) {}
+virtual ~Appli() { delete lzss_o; }
+private:
+
+lzss * lzss_o;
void process_one_file(Handle * f, int d, int n) {
String nom_du_fichier;
@@ -28,7 +37,7 @@ void process_one_file(Handle * f, int d, int n) {
f->seek(0x10c + i * 4);
f->read(&true_length, 4);
f->seek(script_position);
- lzss_decomp(f, f_out, true_length);
+ lzss_o->lzss_decomp(f, f_out, true_length);
// if (i == 7) {
// fseek(f_out, 0, SEEK_SET);
// fread(&true_length, 4, 1, f_out);
@@ -38,7 +47,7 @@ void process_one_file(Handle * f, int d, int n) {
// }
}
-int main(void)
+int startup()
{
Handle * f_script_comp;
int i;
@@ -69,4 +78,6 @@ int main(void)
num++;
}
printm(M_BARE, "Done !\n");
+ return 0;
}
+CODE_ENDS