aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-06-18 17:27:17 -0400
committerEugene Sandulenko2013-09-06 14:48:13 +0300
commit2e6bad888e02952e980dfc33978673bda0349030 (patch)
tree750482ffc23fa7f886183834fd23340f3809d38c /engines
parentfcf0d240d0266fa89073e12d2a15a045b6bdfe65 (diff)
downloadscummvm-rg350-2e6bad888e02952e980dfc33978673bda0349030.tar.gz
scummvm-rg350-2e6bad888e02952e980dfc33978673bda0349030.tar.bz2
scummvm-rg350-2e6bad888e02952e980dfc33978673bda0349030.zip
FULLPIPE: Put debug output at deeper levels
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/motion.cpp16
-rw-r--r--engines/fullpipe/stateloader.cpp18
2 files changed, 18 insertions, 16 deletions
diff --git a/engines/fullpipe/motion.cpp b/engines/fullpipe/motion.cpp
index f10388a98e..ec6a8bdb36 100644
--- a/engines/fullpipe/motion.cpp
+++ b/engines/fullpipe/motion.cpp
@@ -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();
diff --git a/engines/fullpipe/stateloader.cpp b/engines/fullpipe/stateloader.cpp
index cda64c46d4..7501f2baca 100644
--- a/engines/fullpipe/stateloader.cpp
+++ b/engines/fullpipe/stateloader.cpp
@@ -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);