Skip to content
Snippets Groups Projects
Commit 5f7b41ec authored by Amorilia's avatar Amorilia
Browse files

Output when fixing links wrapped around DEBUG defines.

parent 51b552ff
No related branches found
No related tags found
No related merge requests found
...@@ -310,19 +310,23 @@ vector<NiObjectRef> ReadNifList( istream & in ) { ...@@ -310,19 +310,23 @@ vector<NiObjectRef> ReadNifList( istream & in ) {
ReadByte( in ); // this should fail, and trigger the in.eof() flag ReadByte( in ); // this should fail, and trigger the in.eof() flag
if ( ! in.eof() ) if ( ! in.eof() )
throw runtime_error("End of file not reached. This NIF may be corrupt or improperly supported."); throw runtime_error("End of file not reached. This NIF may be corrupt or improperly supported.");
//cout << "Link Stack:" << endl; #ifdef DEBUG
//list<uint>::iterator it; cout << "Link Stack:" << endl;
//for ( it = link_stack.begin(); it != link_stack.end(); ++it ) { list<uint>::iterator it;
// cout << *it << endl; for ( it = link_stack.begin(); it != link_stack.end(); ++it ) {
//} cout << *it << endl;
}
#endif
//cout << "Fixing Links:" << endl; #ifdef DEBUG
////--Now that all blocks are read, go back and fix the links--// cout << "Fixing Links:" << endl;
#endif
//--Now that all blocks are read, go back and fix the links--//
for (uint i = 0; i < blocks.size(); ++i) { for (uint i = 0; i < blocks.size(); ++i) {
#ifdef DEBUG
cout << blocks[i]->GetType().GetTypeName() << endl; cout << blocks[i]->GetType().GetTypeName() << endl;
#endif
//Fix links & other pre-processing //Fix links & other pre-processing
blocks[i]->FixLinks( blocks, link_stack, version ); blocks[i]->FixLinks( blocks, link_stack, version );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment