diff --git a/src/JsmScripts.cpp b/src/JsmScripts.cpp index 2ff4a27..b493c9b 100644 --- a/src/JsmScripts.cpp +++ b/src/JsmScripts.cpp @@ -525,8 +525,8 @@ JsmProgram JsmScripts::program(const QList::const_iterator &constBe int lbl = labels.indexOf(pos + op->param()); if (lbl == -1) { qDebug() << labels << op->toString(); - qFatal(qPrintable(QString("JsmScripts::program 1 label for pos %1 + %2 not found") - .arg(pos).arg(op->param()))); + qFatal() << QString("JsmScripts::program 1 label for pos %1 + %2 not found") + .arg(pos).arg(op->param()).toLocal8Bit().constData(); } JsmOpcodeGoto *jmp = new JsmOpcodeGoto(*op, lbl); jmp->setKey(JsmOpcode::JMP); @@ -542,8 +542,8 @@ JsmProgram JsmScripts::program(const QList::const_iterator &constBe int lbl = labels.indexOf(pos + op->param()); if (lbl == -1) { qDebug() << labels << op->toString(); - qFatal(qPrintable(QString("JsmScripts::program 3 label for pos %1 + %2 not found") - .arg(pos).arg(op->param()))); + qFatal() << QString("JsmScripts::program 3 label for pos %1 + %2 not found") + .arg(pos).arg(op->param()).toLocal8Bit().constData(); } JsmOpcode *toAppendOp = new JsmOpcodeGoto(*op, lbl); ret.append(JsmInstruction(toAppendOp)); diff --git a/src/files/MchFile.cpp b/src/files/MchFile.cpp index 127ca1f..9f64008 100644 --- a/src/files/MchFile.cpp +++ b/src/files/MchFile.cpp @@ -48,13 +48,13 @@ bool MchFile::open(const QByteArray &mch, const QString &name) toc.append(timOffset); } - qDebug() << "tim offset" << QString::number(timOffset & 0xFFFFFF, 16) << QString::number((timOffset >> 24) & 0xFF, 16); + //qDebug() << "tim offset" << QString::number(timOffset & 0xFFFFFF, 16) << QString::number((timOffset >> 24) & 0xFF, 16); } while (timOffset != 0xFFFFFFFF && constData - startData < 0x100); if (timOffset == 0xFFFFFFFF) { memcpy(&modelOffset, constData, 4); - qDebug() << "model data offset" << QString::number(modelOffset, 16); + //qDebug() << "model data offset" << QString::number(modelOffset, 16); if (!toc.isEmpty()) { toc.append(modelOffset); @@ -83,7 +83,7 @@ bool MchFile::open(const QByteArray &mch, const QString &name) return false; } - qDebug() << "MchFile ouvert" << name; + //qDebug() << "MchFile ouvert" << name; return true; }