equal
deleted
inserted
replaced
95 SENDIPC("eadd hh0 0"); |
95 SENDIPC("eadd hh0 0"); |
96 SENDIPC("eadd hh1 0"); |
96 SENDIPC("eadd hh1 0"); |
97 SENDIPC("eadd hh2 0"); |
97 SENDIPC("eadd hh2 0"); |
98 SENDIPC("eadd hh3 0"); |
98 SENDIPC("eadd hh3 0"); |
99 SENDIPC("eaddteam"); |
99 SENDIPC("eaddteam"); |
100 LocalCFG(1); |
100 LocalCFG(2); |
101 SENDIPC("ecolor 16776960"); |
101 SENDIPC("ecolor 16776960"); |
102 SENDIPC("eadd hh0 1"); |
102 SENDIPC("eadd hh0 1"); |
103 SENDIPC("eadd hh1 1"); |
103 SENDIPC("eadd hh1 1"); |
104 SENDIPC("eadd hh2 1"); |
104 SENDIPC("eadd hh2 1"); |
105 SENDIPC("eadd hh3 1"); |
105 SENDIPC("eadd hh3 1"); |
236 arguments << "16"; |
236 arguments << "16"; |
237 arguments << "46631"; |
237 arguments << "46631"; |
238 arguments << (config->vid_Fullscreen() ? "1" : "0"); |
238 arguments << (config->vid_Fullscreen() ? "1" : "0"); |
239 arguments << (config->isSoundEnabled() ? "1" : "0"); |
239 arguments << (config->isSoundEnabled() ? "1" : "0"); |
240 arguments << tr("en.txt"); |
240 arguments << tr("en.txt"); |
241 process->start("./hwengine", arguments); |
241 process->start(bindir->absolutePath() + "/hwengine", arguments); |
242 } |
242 } |
243 |
243 |
244 void HWGame::AddTeam(const QString & teamname) |
244 void HWGame::AddTeam(const QString & teamname) |
245 { |
245 { |
246 if (TeamCount == 5) return; |
246 if (TeamCount == 5) return; |
248 TeamCount++; |
248 TeamCount++; |
249 } |
249 } |
250 |
250 |
251 QString HWGame::GetThemeBySeed() |
251 QString HWGame::GetThemeBySeed() |
252 { |
252 { |
253 QFile themesfile(QString(DATA_PATH) + "/Themes/themes.cfg"); |
253 QFile themesfile(datadir->absolutePath() + "/Themes/themes.cfg"); |
254 QStringList themes; |
254 QStringList themes; |
255 if (themesfile.open(QIODevice::ReadOnly)) |
255 if (themesfile.open(QIODevice::ReadOnly)) |
256 { |
256 { |
257 QTextStream stream(&themesfile); |
257 QTextStream stream(&themesfile); |
258 QString str; |
258 QString str; |
325 |
325 |
326 // run engine |
326 // run engine |
327 Start(); |
327 Start(); |
328 } |
328 } |
329 |
329 |
330 void HWGame::StartNet(const QString & netseed) |
330 void HWGame::StartNet() |
331 { |
331 { |
332 gameType = gtNet; |
332 gameType = gtNet; |
333 seed = netseed; |
|
334 demo = new QByteArray; |
333 demo = new QByteArray; |
335 Start(); |
334 Start(); |
336 } |
335 } |
337 |
336 |
338 void HWGame::StartLocal() |
337 void HWGame::StartLocal() |