Ticket #2954: gob2debug2.diff

File gob2debug2.diff, 1.6 KB (added by DrMcCoy, 18 years ago)

New patch for some debug output

  • draw_v2.cpp

     
    714714                break;
    715715
    716716        case DRAW_PRINTTEXT:
     717                debugC(5, DEBUG_FUNCOP, "PrintText(%d, %d, %d, \"%s\")", _destSurface, _destSpriteX, _destSpriteY, _textToPrint);
    717718                len = strlen(_textToPrint);
    718719                left = _destSpriteX;
    719720                if ((_fontIndex >= 4) || (_fontToSprite[_fontIndex].sprite == -1)) {
  • global.h

     
    196196        }
    197197
    198198        inline void writeVar(uint32 offset, uint32 val) {
     199                debugC(5, DEBUG_FUNCOP, "SETTING Var %d (%d) to (uint32) %d", offset, offset >> 2, (uint32) val);
    199200                (*(uint32 *)(_inter_variables + offset)) = val;
    200201                writeVarSize(offset, 3);
    201202        }
    202203        inline void writeVar(uint32 offset, uint16 val) {
     204                debugC(5, DEBUG_FUNCOP, "SETTING Var %d (%d) to (uint16) %d", offset, offset >> 2, (uint16) val);
    203205                (*(uint16 *)(_inter_variables + offset)) = val;
    204206                writeVarSize(offset, 1);
    205207        }
    206208        inline void writeVar(uint32 offset, uint8 val) {
     209                debugC(5, DEBUG_FUNCOP, "SETTING Var %d (%d) to (uint8) %d", offset, offset >> 2, (uint8) val);
    207210                (*(uint8 *)(_inter_variables + offset)) = val;
    208211                writeVarSize(offset, 0);
    209212        }
  • parse.cpp

     
    163163
    164164void Parse::printExpr(char stopToken) {
    165165        // Expression printing disabled by default
    166         return;
     166//      return;
    167167
    168168        char* savedPos = _vm->_global->_inter_execPtr;
    169169        printExpr_internal(stopToken);