mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Try to do some fixes
This commit is contained in:
parent
9397c836f2
commit
d691925b1f
@ -69,7 +69,7 @@ void SocketLobby::send(const QString & msg)
|
||||
{
|
||||
int sz = msg.size();
|
||||
QByteArray pack((const char *)&sz, sizeof(sz));
|
||||
pack.append(qPrintable(msg));
|
||||
pack.append(qUtf8Printable(msg));
|
||||
socket->write(pack);
|
||||
}
|
||||
|
||||
|
@ -22,10 +22,10 @@
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
int result;
|
||||
#ifdef VCMI_IOS
|
||||
{
|
||||
__argc = argc;
|
||||
__argv = argv;
|
||||
#ifdef VCMI_IOS
|
||||
{
|
||||
#endif
|
||||
QApplication vcmilauncher(argc, argv);
|
||||
MainWindow mainWindow;
|
||||
|
@ -119,7 +119,8 @@ MainWindow::~MainWindow()
|
||||
void MainWindow::startGame(const QStringList & args)
|
||||
{
|
||||
__argc = args.size();
|
||||
__argv = new char*[__argc];
|
||||
if(__argc)
|
||||
__argv = new char*[__argc];
|
||||
for(int i = 0; i < __argc; ++i)
|
||||
{
|
||||
const char * s = args[i].toLocal8Bit().constData();
|
||||
|
Loading…
Reference in New Issue
Block a user