author | unc0rr |
Tue, 27 Dec 2005 10:20:55 +0000 | |
changeset 31 | 99888245a4e8 |
parent 28 | 59f7db859b8a |
child 32 | 78bff13b11c0 |
permissions | -rw-r--r-- |
25 | 1 |
/* |
2 |
* Hedgewars, a worms-like game |
|
3 |
* Copyright (c) 2005 Andrey Korotaev <unC0Rr@gmail.com> |
|
4 |
* |
|
5 |
* Distributed under the terms of the BSD-modified licence: |
|
6 |
* |
|
7 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
|
8 |
* of this software and associated documentation files (the "Software"), to deal |
|
9 |
* with the Software without restriction, including without limitation the |
|
10 |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
|
11 |
* sell copies of the Software, and to permit persons to whom the Software is |
|
12 |
* furnished to do so, subject to the following conditions: |
|
13 |
* |
|
14 |
* 1. Redistributions of source code must retain the above copyright notice, |
|
15 |
* this list of conditions and the following disclaimer. |
|
16 |
* 2. Redistributions in binary form must reproduce the above copyright notice, |
|
17 |
* this list of conditions and the following disclaimer in the documentation |
|
18 |
* and/or other materials provided with the distribution. |
|
19 |
* 3. The name of the author may not be used to endorse or promote products |
|
20 |
* derived from this software without specific prior written permission. |
|
21 |
* |
|
22 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED |
|
23 |
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
|
24 |
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO |
|
25 |
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
|
26 |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
27 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
|
28 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
|
29 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
|
30 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
|
31 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
32 |
*/ |
|
33 |
||
34 |
#include <QMessageBox> |
|
35 |
#include <QProcess> |
|
36 |
#include <QTimer> |
|
37 |
#include <QString> |
|
38 |
#include <QByteArray> |
|
39 |
#include <QTextStream> |
|
40 |
#include <QFile> |
|
41 |
#include "game.h" |
|
42 |
#include "hwconsts.h" |
|
43 |
||
26 | 44 |
HWGame::HWGame(int Resolution, bool Fullscreen) |
25 | 45 |
{ |
26 | 46 |
vid_Resolution = Resolution; |
47 |
vid_Fullscreen = Fullscreen; |
|
25 | 48 |
IPCServer = new QTcpServer(this); |
49 |
IPCServer->setMaxPendingConnections(1); |
|
50 |
if (!IPCServer->listen(QHostAddress("127.0.0.1"), IPC_PORT)) |
|
51 |
{ |
|
28 | 52 |
QMessageBox::critical(0, tr("Error"), |
25 | 53 |
tr("Unable to start the server: %1.") |
54 |
.arg(IPCServer->errorString())); |
|
55 |
} |
|
56 |
connect(IPCServer, SIGNAL(newConnection()), this, SLOT(NewConnection())); |
|
57 |
IPCSocket = 0; |
|
58 |
TeamCount = 0; |
|
26 | 59 |
seed = ""; |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
60 |
cfgdir.setPath(cfgdir.homePath()); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
61 |
cfgdir.cd(".hedgewars"); |
25 | 62 |
} |
63 |
||
64 |
void HWGame::NewConnection() |
|
65 |
{ |
|
66 |
QTcpSocket * client = IPCServer->nextPendingConnection(); |
|
67 |
if(!IPCSocket) |
|
68 |
{ |
|
69 |
IPCSocket = client; |
|
70 |
connect(client, SIGNAL(disconnected()), this, SLOT(ClientDisconnect())); |
|
71 |
connect(client, SIGNAL(readyRead()), this, SLOT(ClientRead())); |
|
72 |
msgsize = 0; |
|
73 |
} else |
|
74 |
{ |
|
75 |
client->disconnectFromHost(); |
|
76 |
delete client; |
|
77 |
} |
|
78 |
} |
|
79 |
||
80 |
void HWGame::ClientDisconnect() |
|
81 |
{ |
|
82 |
IPCSocket = 0; |
|
83 |
SaveDemo("demo.hwd_1"); |
|
84 |
delete this; |
|
85 |
} |
|
86 |
||
87 |
void HWGame::SendTeamConfig(int index) |
|
88 |
{ |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
89 |
LocalCFG(teams[index]); |
25 | 90 |
} |
91 |
||
92 |
void HWGame::SendConfig() |
|
93 |
{ |
|
26 | 94 |
if (gameType == gtDemo) |
95 |
{ |
|
96 |
SENDIPC("TD"); |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
97 |
RawSendIPC(*toSendBuf); |
26 | 98 |
delete toSendBuf; |
99 |
return ; |
|
100 |
} |
|
25 | 101 |
SENDIPC("TL"); |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
102 |
// SENDIPC("e$gmflags 0"); |
25 | 103 |
SENDIPC("eaddteam"); |
104 |
SendTeamConfig(0); |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
105 |
// if () SENDIPC("rdriven"); |
25 | 106 |
SENDIPC("ecolor 65535"); |
107 |
SENDIPC("eadd hh0 0"); |
|
108 |
SENDIPC("eadd hh1 0"); |
|
109 |
SENDIPC("eadd hh2 0"); |
|
110 |
SENDIPC("eadd hh3 0"); |
|
28 | 111 |
SENDIPC("eadd hh4 0"); |
25 | 112 |
SENDIPC("eaddteam"); |
113 |
SendTeamConfig(1); |
|
114 |
SENDIPC("ecolor 16776960"); |
|
115 |
SENDIPC("eadd hh0 1"); |
|
116 |
SENDIPC("eadd hh1 1"); |
|
117 |
SENDIPC("eadd hh2 1"); |
|
118 |
SENDIPC("eadd hh3 1"); |
|
28 | 119 |
SENDIPC("eadd hh4 1"); |
25 | 120 |
} |
121 |
||
122 |
void HWGame::ParseMessage() |
|
123 |
{ |
|
124 |
switch(msgbuf[0]) |
|
125 |
{ |
|
126 |
case '?': |
|
127 |
{ |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
128 |
if (gameType == gtNet) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
129 |
emit SendNet(QByteArray("\x01""?")); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
130 |
else |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
131 |
SENDIPC("!"); |
25 | 132 |
break; |
133 |
} |
|
134 |
case 'C': |
|
135 |
{ |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
136 |
if (gameType == gtNet) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
137 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
138 |
SENDIPC("TN"); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
139 |
emit SendNet(QByteArray("\x01""C")); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
140 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
141 |
else |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
142 |
SendConfig(); |
25 | 143 |
break; |
144 |
} |
|
145 |
case '+': |
|
146 |
{ |
|
147 |
break; |
|
148 |
} |
|
149 |
default: |
|
150 |
{ |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
151 |
if (gameType == gtNet) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
152 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
153 |
emit SendNet(QByteArray::fromRawData(msgbuf, msgsize)); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
154 |
} |
25 | 155 |
demo->append(msgsize); |
156 |
demo->append(QByteArray::fromRawData(msgbuf, msgsize)); |
|
157 |
} |
|
158 |
} |
|
159 |
} |
|
160 |
||
161 |
void HWGame::SendIPC(const char * msg, quint8 len) |
|
162 |
{ |
|
163 |
IPCSocket->write((char *)&len, 1); |
|
164 |
IPCSocket->write(msg, len); |
|
165 |
if ((len > 5) && !((msg[0] == 'e') && (msg[1] == 'b'))) |
|
166 |
{ |
|
167 |
demo->append(len); |
|
168 |
demo->append(QByteArray::fromRawData(msg, len)); |
|
169 |
} |
|
170 |
} |
|
171 |
||
172 |
void HWGame::SendIPC(const QByteArray & buf) |
|
173 |
{ |
|
28 | 174 |
if (buf.size() > MAXMSGCHARS) return; |
25 | 175 |
quint8 len = buf.size(); |
176 |
IPCSocket->write((char *)&len, 1); |
|
177 |
IPCSocket->write(buf); |
|
178 |
demo->append(len); |
|
179 |
demo->append(buf); |
|
180 |
} |
|
181 |
||
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
182 |
void HWGame::RawSendIPC(const QByteArray & buf) |
26 | 183 |
{ |
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
184 |
IPCSocket->write(buf); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
185 |
demo->append(buf); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
186 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
187 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
188 |
void HWGame::FromNet(const QByteArray & msg) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
189 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
190 |
// ?local config? |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
191 |
RawSendIPC(msg); |
26 | 192 |
} |
193 |
||
25 | 194 |
void HWGame::ClientRead() |
195 |
{ |
|
196 |
qint64 readbytes = 1; |
|
197 |
while (readbytes > 0) |
|
198 |
{ |
|
199 |
if (msgsize == 0) |
|
200 |
{ |
|
201 |
msgbufsize = 0; |
|
202 |
readbytes = IPCSocket->read((char *)&msgsize, 1); |
|
203 |
} else |
|
204 |
{ |
|
205 |
msgbufsize += |
|
206 |
readbytes = IPCSocket->read((char *)&msgbuf[msgbufsize], msgsize - msgbufsize); |
|
207 |
if (msgbufsize = msgsize) |
|
208 |
{ |
|
209 |
ParseMessage(); |
|
210 |
msgsize = 0; |
|
211 |
} |
|
212 |
} |
|
213 |
} |
|
214 |
} |
|
215 |
||
26 | 216 |
void HWGame::Start() |
25 | 217 |
{ |
218 |
QProcess * process; |
|
219 |
QStringList arguments; |
|
220 |
process = new QProcess; |
|
26 | 221 |
arguments << resolutions[0][vid_Resolution]; |
222 |
arguments << resolutions[1][vid_Resolution]; |
|
25 | 223 |
arguments << GetThemeBySeed(); |
224 |
arguments << "46631"; |
|
225 |
arguments << seed; |
|
26 | 226 |
arguments << (vid_Fullscreen ? "1" : "0"); |
25 | 227 |
process->start("hw", arguments); |
228 |
} |
|
229 |
||
230 |
void HWGame::AddTeam(const QString & teamname) |
|
231 |
{ |
|
232 |
if (TeamCount == 5) return; |
|
233 |
teams[TeamCount] = teamname; |
|
234 |
TeamCount++; |
|
235 |
} |
|
236 |
||
237 |
QString HWGame::GetThemeBySeed() |
|
238 |
{ |
|
26 | 239 |
QFile themesfile(QString(DATA_PATH) + "/Themes/themes.cfg"); |
25 | 240 |
QStringList themes; |
241 |
if (themesfile.open(QIODevice::ReadOnly)) |
|
242 |
{ |
|
243 |
QTextStream stream(&themesfile); |
|
244 |
QString str; |
|
245 |
while (!stream.atEnd()) |
|
246 |
{ |
|
247 |
themes << stream.readLine(); |
|
248 |
} |
|
249 |
themesfile.close(); |
|
250 |
} |
|
251 |
quint32 len = themes.size(); |
|
252 |
if (len == 0) |
|
253 |
{ |
|
28 | 254 |
QMessageBox::critical(0, "Error", "Cannot access themes.cfg or bad data", "OK"); |
25 | 255 |
return "avematan"; |
256 |
} |
|
257 |
if (seed.isEmpty()) |
|
258 |
{ |
|
28 | 259 |
QMessageBox::critical(0, "Error", "seed not defined", "OK"); |
25 | 260 |
return "avematan"; |
261 |
} |
|
262 |
quint32 k = 0; |
|
263 |
for (int i = 0; i < seed.length(); i++) |
|
264 |
{ |
|
265 |
k += seed[i].unicode(); |
|
266 |
} |
|
267 |
return themes[k % len]; |
|
268 |
} |
|
269 |
||
270 |
void HWGame::SaveDemo(const QString & filename) |
|
271 |
{ |
|
272 |
QFile demofile(filename); |
|
273 |
if (!demofile.open(QIODevice::WriteOnly)) |
|
274 |
{ |
|
28 | 275 |
QMessageBox::critical(0, |
25 | 276 |
tr("Error"), |
277 |
tr("Cannot save demo to file %s").arg(filename), |
|
278 |
tr("Quit")); |
|
279 |
return ; |
|
280 |
} |
|
281 |
QDataStream stream(&demofile); |
|
282 |
stream.writeRawData(demo->constData(), demo->size()); |
|
283 |
demofile.close(); |
|
26 | 284 |
delete demo; |
25 | 285 |
} |
26 | 286 |
|
287 |
void HWGame::PlayDemo(const QString & demofilename) |
|
288 |
{ |
|
289 |
gameType = gtDemo; |
|
290 |
QFile demofile(demofilename); |
|
291 |
if (!demofile.open(QIODevice::ReadOnly)) |
|
292 |
{ |
|
28 | 293 |
QMessageBox::critical(0, |
26 | 294 |
tr("Error"), |
295 |
tr("Cannot open demofile %s").arg(demofilename), |
|
296 |
tr("Quit")); |
|
297 |
return ; |
|
298 |
} |
|
299 |
||
300 |
// read demo |
|
301 |
QDataStream stream(&demofile); |
|
302 |
toSendBuf = new QByteArray(); |
|
303 |
char buf[512]; |
|
304 |
quint32 readbytes; |
|
305 |
do |
|
306 |
{ |
|
307 |
readbytes = stream.readRawData((char *)&buf, 512); |
|
308 |
toSendBuf -> append(QByteArray((char *)&buf, readbytes)); |
|
309 |
||
310 |
} while (readbytes > 0); |
|
311 |
demofile.close(); |
|
312 |
||
313 |
// cut seed |
|
314 |
quint32 index = toSendBuf->indexOf(10); |
|
315 |
if (!index) |
|
316 |
{ |
|
28 | 317 |
QMessageBox::critical(0, |
26 | 318 |
tr("Error"), |
319 |
tr("Corrupted demo file %s").arg(demofilename), |
|
320 |
tr("Quit")); |
|
321 |
return ; |
|
322 |
} |
|
323 |
seed = QString(toSendBuf->left(index++)); |
|
324 |
toSendBuf->remove(0, index); |
|
325 |
||
326 |
// run engine |
|
327 |
QProcess * process; |
|
328 |
QStringList arguments; |
|
329 |
process = new QProcess; |
|
330 |
arguments << resolutions[0][vid_Resolution]; |
|
331 |
arguments << resolutions[1][vid_Resolution]; |
|
332 |
arguments << GetThemeBySeed(); |
|
333 |
arguments << "46631"; |
|
334 |
arguments << seed; |
|
335 |
arguments << (vid_Fullscreen ? "1" : "0"); |
|
336 |
process->start("hw", arguments); |
|
337 |
demo = new QByteArray; |
|
338 |
} |
|
31
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
339 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
340 |
void HWGame::StartNet(const QString & netseed) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
341 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
342 |
gameType = gtNet; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
343 |
seed = netseed; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
344 |
Start(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
345 |
demo = new QByteArray; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
346 |
demo->append(seed.toLocal8Bit()); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
347 |
demo->append(10); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
348 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
349 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
350 |
void HWGame::StartLocal() |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
351 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
352 |
gameType = gtLocal; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
353 |
if (TeamCount < 2) return; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
354 |
seedgen.GenRNDStr(seed, 10); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
355 |
Start(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
356 |
demo = new QByteArray; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
357 |
demo->append(seed.toLocal8Bit()); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
358 |
demo->append(10); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
359 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
360 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
361 |
void HWGame::LocalCFG(const QString & teamname) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
362 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
363 |
QFile teamcfg(cfgdir.absolutePath() + "/" + teamname + ".cfg"); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
364 |
if (!teamcfg.open(QIODevice::ReadOnly)) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
365 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
366 |
return ; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
367 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
368 |
QTextStream stream(&teamcfg); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
369 |
stream.setCodec("UTF-8"); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
370 |
QString str; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
371 |
|
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
372 |
while (!stream.atEnd()) |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
373 |
{ |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
374 |
str = stream.readLine(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
375 |
if (str.startsWith(";") || (str.length() > 254)) continue; |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
376 |
str.prepend("e"); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
377 |
SendIPC(str.toLocal8Bit()); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
378 |
} |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
379 |
teamcfg.close(); |
99888245a4e8
Now net game is near available, but exception occurs...
unc0rr
parents:
28
diff
changeset
|
380 |
} |