QTfrontend/game.cpp
changeset 9718 563a34cd8398
parent 9466 8b48c27201af
child 9950 2759212a27de
child 9998 736015b847e3
equal deleted inserted replaced
9717:b8b7ef99a084 9718:563a34cd8398
   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);