Ticket #2954: gob2debug.diff

File gob2debug.diff, 1.6 KB (added by DrMcCoy, 14 years ago)

Patch for some debug output

  • draw_v2.cpp

     
    714714                break;
    715715
    716716        case DRAW_PRINTTEXT:
     717                warning("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

     
    180180        }
    181181
    182182        inline void writeVar(uint32 offset, uint32 val) {
     183                warning("SETTING Var %d (%d) to (uint32) %d", offset, offset >> 2, (uint32) val);
    183184                (*(uint32 *)(_inter_variables + offset)) = val;
    184185                writeVarSize(offset, 3);
    185186        }
    186187        inline void writeVar(uint32 offset, uint16 val) {
     188                warning("SETTING Var %d (%d) to (uint16) %d", offset, offset >> 2, (uint16) val);
    187189                (*(uint16 *)(_inter_variables + offset)) = val;
    188190                writeVarSize(offset, 1);
    189191        }
    190192        inline void writeVar(uint32 offset, uint8 val) {
     193                warning("SETTING Var %d (%d) to (uint8) %d", offset, offset >> 2, (uint8) val);
    191194                (*(uint8 *)(_inter_variables + offset)) = val;
    192195                writeVarSize(offset, 0);
    193196        }
  • 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);