FULLPIPE: Put debug output at deeper levels

This commit is contained in:
Eugene Sandulenko 2013-06-18 17:27:17 -04:00
parent fcf0d240d0
commit 2e6bad888e
2 changed files with 18 additions and 16 deletions

View File

@ -42,16 +42,17 @@ bool CMotionController::load(MfcArchive &file) {
bool CMctlCompound::load(MfcArchive &file) {
int count = file.readUint32LE();
debug(0, "CMctlCompound::count = %d", count);
debug(6, "CMctlCompound::count = %d", count);
for (int i = 0; i < count; i++) {
debug(0, "CompoundArray[%d]", i);
debug(6, "CompoundArray[%d]", i);
CMctlCompoundArrayItem *obj = (CMctlCompoundArrayItem *)file.readClass();
int count1 = file.readUint32LE();
debug(6, "ConnectionPoint::count: %d", count1);
for (int j = 0; j < count1; j++) {
debug(0, "ConnectionPoint[%d]", j);
debug(6, "ConnectionPoint[%d]", j);
CMctlConnectionPoint *obj1 = (CMctlConnectionPoint *)file.readClass();
obj->_connectionPoints.push_back(*obj1);
@ -60,6 +61,7 @@ bool CMctlCompound::load(MfcArchive &file) {
obj->_field_20 = file.readUint32LE();
obj->_field_24 = file.readUint32LE();
debug(6, "graphReact");
obj->_movGraphReactObj = (CMovGraphReact *)file.readClass();
_motionControllers.push_back(*obj);
@ -73,6 +75,8 @@ bool CMctlCompoundArray::load(MfcArchive &file) {
debug(0, "CMctlCompoundArray::count = %d", count);
assert(0);
return true;
}
@ -108,15 +112,15 @@ bool CMovGraphLink::load(MfcArchive &file) {
_flags = file.readUint32LE();
debug(0, "GraphNode1");
debug(8, "GraphNode1");
_movGraphNode1 = (CMovGraphNode *)file.readClass();
debug(0, "GraphNode2");
debug(8, "GraphNode2");
_movGraphNode2 = (CMovGraphNode *)file.readClass();
_distance = file.readDouble();
_angle = file.readDouble();
debug(0, "distance: %g, angle: %g", _distance, _angle);
debug(8, "distance: %g, angle: %g", _distance, _angle);
_movGraphReact = (CMovGraphReact *)file.readClass();
_name = file.readPascalString();

View File

@ -114,11 +114,9 @@ bool CGameLoader::load(MfcArchive &file) {
snprintf(tmp, 11, "%04d.sc2", it->_sceneId);
debug(0, "sc: %d", it->_sceneId);
debug(2, "sc: %s", tmp);
_sc2array[i].loadFile((const char *)tmp);
debug(0, "sc: %s", tmp);
}
_preloadItems.load(file);
@ -260,10 +258,10 @@ bool CInteractionController::load(MfcArchive &file) {
bool CObList::load(MfcArchive &file) {
int count = file.readCount();
debug(0, "CObList::count: %d:", count);
debug(9, "CObList::count: %d:", count);
for (int i = 0; i < count; i++) {
debug(0, "CObList::[%d]", i);
debug(9, "CObList::[%d]", i);
CObject *t = file.readClass();
push_back(*t);
@ -507,7 +505,7 @@ bool Sc2::load(MfcArchive &file) {
_motionController = (CMotionController *)file.readClass();
_count1 = file.readUint32LE();
debug(0, "count1: %d", _count1);
debug(4, "count1: %d", _count1);
if (_count1 > 0) {
_data1 = (int32 *)malloc(_count1 * sizeof(int32));
@ -519,7 +517,7 @@ bool Sc2::load(MfcArchive &file) {
}
_defPicAniInfosCount = file.readUint32LE();
debug(0, "defPicAniInfos: %d", _defPicAniInfosCount);
debug(4, "defPicAniInfos: %d", _defPicAniInfosCount);
if (_defPicAniInfosCount > 0) {
_defPicAniInfos = (PicAniInfo **)malloc(_defPicAniInfosCount * sizeof(PicAniInfo *));
@ -536,7 +534,7 @@ bool Sc2::load(MfcArchive &file) {
_picAniInfosCount = 0;
_entranceDataCount = file.readUint32LE();
debug(0, "_entranceData: %d", _entranceDataCount);
debug(4, "_entranceData: %d", _entranceDataCount);
if (_entranceDataCount > 0) {
_entranceData = (EntranceInfo **)malloc(_defPicAniInfosCount * sizeof(EntranceInfo *));
@ -549,7 +547,7 @@ bool Sc2::load(MfcArchive &file) {
_entranceData = 0;
}
debug(0, "pos: %d, 0x%x: %d", file.size(), file.pos(), file.size() - file.pos());
debug(4, "pos: %d, 0x%x: %d", file.size(), file.pos(), file.size() - file.pos());
return true;
}
@ -557,7 +555,7 @@ bool Sc2::load(MfcArchive &file) {
bool CDWordArray::load(MfcArchive &file) {
int count = file.readCount();
debug(0, "CDWordArray::count: %d", count);
debug(9, "CDWordArray::count: %d", count);
resize(count);