mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Try to do some fixes
This commit is contained in:
@@ -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,6 +119,7 @@ MainWindow::~MainWindow()
|
||||
void MainWindow::startGame(const QStringList & args)
|
||||
{
|
||||
__argc = args.size();
|
||||
if(__argc)
|
||||
__argv = new char*[__argc];
|
||||
for(int i = 0; i < __argc; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user