1
0
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:
nordsoft 2022-11-11 00:02:00 +04:00
parent 9397c836f2
commit d691925b1f
3 changed files with 5 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;

View File

@ -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();