equal
deleted
inserted
replaced
504 RawSendIPC(buf); |
504 RawSendIPC(buf); |
505 } |
505 } |
506 |
506 |
507 void HWGame::sendCampaignVar(const QByteArray &varToSend) |
507 void HWGame::sendCampaignVar(const QByteArray &varToSend) |
508 { |
508 { |
509 QString varToFind(varToSend); |
509 QString varToFind = QString::fromUtf8(varToSend); |
510 QSettings teamfile(QString("physfs://Teams/%1.hwt").arg(campaignTeam), QSettings::IniFormat, 0); |
510 QSettings teamfile(QString("physfs://Teams/%1.hwt").arg(campaignTeam), QSettings::IniFormat, 0); |
511 teamfile.setIniCodec("UTF-8"); |
511 teamfile.setIniCodec("UTF-8"); |
512 QString varValue = teamfile.value("Campaign " + campaign + "/" + varToFind, "").toString(); |
512 QString varValue = teamfile.value("Campaign " + campaign + "/" + varToFind, "").toString(); |
513 QByteArray command; |
513 QByteArray command; |
514 HWProto::addStringToBuffer(command, "V." + varValue); |
514 HWProto::addStringToBuffer(command, "V." + varValue); |