QTfrontend/team.cpp
branchwebgl
changeset 8833 c13ebed437cb
parent 8508 f849b7b3af1d
child 9080 9b42757d7e71
equal deleted inserted replaced
8450:404ddce27b23 8833:c13ebed437cb
   224         QFile cfgfile(QString("physfs://Teams/%1.hwt").arg(OldTeamName));
   224         QFile cfgfile(QString("physfs://Teams/%1.hwt").arg(OldTeamName));
   225         cfgfile.remove();
   225         cfgfile.remove();
   226         OldTeamName = m_name;
   226         OldTeamName = m_name;
   227     }
   227     }
   228 
   228 
   229     QSettings teamfile(QString("physfs://Teams/%1.hwt").arg(m_name), QSettings::IniFormat, 0);
   229     QString fileName = QString("physfs://Teams/%1.hwt").arg(m_name);
       
   230     DataManager::ensureFileExists(fileName);
       
   231     QSettings teamfile(fileName, QSettings::IniFormat, 0);
   230     teamfile.setIniCodec("UTF-8");
   232     teamfile.setIniCodec("UTF-8");
   231     teamfile.setValue("Team/Name", m_name);
   233     teamfile.setValue("Team/Name", m_name);
   232     teamfile.setValue("Team/Grave", m_grave);
   234     teamfile.setValue("Team/Grave", m_grave);
   233     teamfile.setValue("Team/Fort", m_fort);
   235     teamfile.setValue("Team/Fort", m_fort);
   234     teamfile.setValue("Team/Voicepack", m_voicepack);
   236     teamfile.setValue("Team/Voicepack", m_voicepack);