598 QString nick = config->netNick().toUtf8().toBase64(); |
598 QString nick = config->netNick().toUtf8().toBase64(); |
599 |
599 |
600 arguments << "--internal"; //Must be passed as first argument |
600 arguments << "--internal"; //Must be passed as first argument |
601 arguments << "--port"; |
601 arguments << "--port"; |
602 arguments << QString("%1").arg(ipc_port); |
602 arguments << QString("%1").arg(ipc_port); |
|
603 #ifdef _WIN32 |
|
604 { |
|
605 QString path = datadir->absolutePath(); |
|
606 if (path == QLatin1String(path.toLatin1())) { |
|
607 arguments << "--prefix"; |
|
608 arguments << path; |
|
609 } else { |
|
610 arguments << "--prefix64"; |
|
611 arguments << path.toUtf8().toBase64(); |
|
612 } |
|
613 path = cfgdir->absolutePath(); |
|
614 if (path == QLatin1String(path.toLatin1())) { |
|
615 arguments << "--user-prefix"; |
|
616 arguments << path; |
|
617 } else { |
|
618 arguments << "--user-prefix64"; |
|
619 arguments << path.toUtf8().toBase64(); |
|
620 } |
|
621 } |
|
622 #else |
603 arguments << "--prefix"; |
623 arguments << "--prefix"; |
604 arguments << datadir->absolutePath(); |
624 arguments << datadir->absolutePath(); |
605 arguments << "--user-prefix"; |
625 arguments << "--user-prefix"; |
606 arguments << cfgdir->absolutePath(); |
626 arguments << cfgdir->absolutePath(); |
|
627 #endif |
607 arguments << "--locale"; |
628 arguments << "--locale"; |
608 // TODO: Don't bother translators with this nonsense and detect this file automatically. |
629 // TODO: Don't bother translators with this nonsense and detect this file automatically. |
609 //: IMPORTANT: This text has a special meaning, do not translate it directly. This is the file name of translation files for the game engine, found in Data/Locale/. Usually, you replace “en” with the ISO-639-1 language code of your language. |
630 //: IMPORTANT: This text has a special meaning, do not translate it directly. This is the file name of translation files for the game engine, found in Data/Locale/. Usually, you replace “en” with the ISO-639-1 language code of your language. |
610 arguments << tr("en.txt"); |
631 arguments << tr("en.txt"); |
611 arguments << "--frame-interval"; |
632 arguments << "--frame-interval"; |