diff options
author | pixel <pixel> | 2002-12-10 19:47:26 +0000 |
---|---|---|
committer | pixel <pixel> | 2002-12-10 19:47:26 +0000 |
commit | 10ae629edf1f285a295df85664c075f58cf56a87 (patch) | |
tree | 087a6d6bae8781c610a03cf7d6e8cb52eb267543 /lib | |
parent | 4cbd4b4b5331948d9cdc44292b7870bcfc5218bd (diff) |
Bleh
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/Makefile | 2 | ||||
-rw-r--r-- | lib/cdreader.cpp | 2 | ||||
-rw-r--r-- | lib/lzss.cpp | 10 |
3 files changed, 12 insertions, 2 deletions
diff --git a/lib/Makefile b/lib/Makefile index 3c9cef6..24c068e 100755 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f -CPPFLAGS=-Wall -g -O3 -mcpu=i686 -Werror -I../includes -DHAVE_ZLIB -DUSE_CDREADER +CPPFLAGS=-Wall -g -O3 -mcpu=i686 -Werror -I../includes -DHAVE_ZLIB -DUSE_CDREADER -DDEBUG CXX=g++ OBJECTS = cdutils.o lzss.o yazedc.o dteutils.o cdreader.o cdabstract.o diff --git a/lib/cdreader.cpp b/lib/cdreader.cpp index 77b14f9..a95980c 100644 --- a/lib/cdreader.cpp +++ b/lib/cdreader.cpp @@ -80,7 +80,7 @@ cdreader::cdreader(const String & no) throw (GeneralException) : Handle(open(no.to_charp(), O_RDONLY)), n(no), sector(0) { #ifdef DEBUG - fprintf(stderr, "Opening cdrom device %s\n", no.to_charp(), this); + printm(M_ERROR, "Opening cdrom device " + no + "\n"); #endif if (GetHandle() < 0) { diff --git a/lib/lzss.cpp b/lib/lzss.cpp index a991f07..d74c33e 100644 --- a/lib/lzss.cpp +++ b/lib/lzss.cpp @@ -30,6 +30,16 @@ lzss::lzss() : tolerate(1), blockb(0), scheme(schemes[0]), lzss_maxsize(18), lzs compute_limits(); } +/* + +Valkyrie Profile V2: + +JJJJJJJJ LLLLJJJJ +VVVVVVVV 1111RRRR +RRRRRRRR 11110000 VVVVVVVV + +*/ + const lzss::scheme_t lzss::schemes[] = { /* Nom 1 I J O N 16 P F W Lm1 Ls1 Lm2 Ls2 Jm1 Js1 Jm2 Js2 Fm1 Fs1 Fm2 Fs2 Vm1 Vs1 Vm2 Vs2 */ {"Xenogears", 1, 0, 0, 1, 0, 0, 0, 0, 0, 0x00, 0, 0xf0, -4, 0xff, 0, 0x0f, 8, 0x00, 0, 0x00, 0, 0x00, 0, 0x00, 0}, |