1858 #ifdef Q_WS_WIN |
1858 #ifdef Q_WS_WIN |
1859 prefix = prefix.replace("/","\\"); |
1859 prefix = prefix.replace("/","\\"); |
1860 userPrefix = userPrefix.replace("/","\\"); |
1860 userPrefix = userPrefix.replace("/","\\"); |
1861 #endif |
1861 #endif |
1862 |
1862 |
1863 QRect resolution = config->vid_Resolution(); |
1863 std::pair<QRect, QRect> resolutions = config->vid_ResolutionPair(); |
1864 return QString("--prefix " + prefix |
1864 return QString("--prefix " + prefix |
1865 + " --user-prefix " + userPrefix |
1865 + " --user-prefix " + userPrefix |
1866 + " --width " + QString::number(resolution.width()) |
1866 + " --fullscreen-width " + QString::number(resolutions.first.width()) |
1867 + " --height " + QString::number(resolution.height()) |
1867 + " --fullscreen-height " + QString::number(resolutions.first.height()) |
|
1868 + " --width " + QString::number(resolutions.second.width()) |
|
1869 + " --height " + QString::number(resolutions.second.height()) |
1868 + " --volume " + QString::number(config->volume()) |
1870 + " --volume " + QString::number(config->volume()) |
1869 + (config->isMusicEnabled() ? "" : " --nomusic") |
1871 + (config->isMusicEnabled() ? "" : " --nomusic") |
1870 + (config->isSoundEnabled() ? "" : " --nosound") |
1872 + (config->isSoundEnabled() ? "" : " --nosound") |
1871 + " --locale " + config->language() + ".txt" |
1873 + " --locale " + config->language() + ".txt" |
1872 + (config->vid_Fullscreen() ? " --fullscreen" : "") |
1874 + (config->vid_Fullscreen() ? " --fullscreen" : "") |