From 9f3b6fe838b29fd178a7981b559ba56f7e2c34cd Mon Sep 17 00:00:00 2001 From: "admin@omencraft.com" Date: Sun, 30 Oct 2011 02:16:01 +0000 Subject: Changed cChunkMat.cpp back to normal. Made more changes to the denotch map converter. Testing cNBTData parser. git-svn-id: http://mc-server.googlecode.com/svn/trunk@21 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- converter/cConvert.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'converter/cConvert.cpp') diff --git a/converter/cConvert.cpp b/converter/cConvert.cpp index 788399dcf..8554687ca 100644 --- a/converter/cConvert.cpp +++ b/converter/cConvert.cpp @@ -109,6 +109,9 @@ int main () { char temparr[compdlength]; //can't get fread to read more than one char at a time into a char array... so that's what I'll do. :( At least it works. + if( fread( temparr, compdlength, 1, f) != 1 ) { cout << "ERROR rf22 READING FROM FILE " << SourceFile; fclose(f); return false; } + frloc = frloc + compdlength; + /* int re = 0; char tempbyte = 0; while (re < compdlength) { //loop through file and read contents into char array a byte at a time. @@ -118,7 +121,7 @@ int main () { frloc++; } - + */ //if( fread( comp_data, compdlength, sizeof(unsigned char), f) != 1 ) { cout << "ERROR 1234 READING FROM FILE " << SourceFile <m_bDecompressed = true; + NBTData->ParseData(); + NBTData->PrintData(); + return 1; fwrite( BlockData, DestSize, 1, wf ); //write contents of uncompressed block data to file to check to see if it's valid... It is! :D //fwrite( &temparr, compdlength, sizeof(unsigned char), wf ); //cin >> n; //just to see screen output -- cgit v1.2.3