QTfrontend/game.cpp
branchexperimental3D
changeset 3694 3e9c0634065c
parent 3690 c247dee9e1c0
child 3696 6009d8378422
equal deleted inserted replaced
3692:bbec1275e46f 3694:3e9c0634065c
   275     arguments << QString::number(resolution.height());
   275     arguments << QString::number(resolution.height());
   276     arguments << QString::number(config->bitDepth()); // bpp
   276     arguments << QString::number(config->bitDepth()); // bpp
   277     arguments << QString("%1").arg(ipc_port);
   277     arguments << QString("%1").arg(ipc_port);
   278     arguments << (config->vid_Fullscreen() ? "1" : "0");
   278     arguments << (config->vid_Fullscreen() ? "1" : "0");
   279     arguments << (config->isSoundEnabled() ? "1" : "0");
   279     arguments << (config->isSoundEnabled() ? "1" : "0");
   280 #ifdef _WIN32
   280     arguments << "0"; //(config->isSoundHardware() ? "1" : "0");
   281     arguments << (config->isSoundHardware() ? "1" : "0");
   281     arguments << "0"; //(config->isWeaponTooltip() ? "1" : "0");
   282 #else
       
   283     arguments << "0";
       
   284 #endif
       
   285     arguments << (config->isWeaponTooltip() ? "1" : "0");
       
   286     arguments << tr("en.txt");
   282     arguments << tr("en.txt");
   287     arguments << QString::number(config->volume()); // sound volume
   283     arguments << QString::number(config->volume()); // sound volume
   288     arguments << QString::number(config->timerInterval());
   284     arguments << QString::number(config->timerInterval());
   289     arguments << datadir->absolutePath();
   285     arguments << datadir->absolutePath();
   290     arguments << (config->isShowFPSEnabled() ? "1" : "0");
   286     arguments << (config->isShowFPSEnabled() ? "1" : "0");
   291     arguments << (config->isAltDamageEnabled() ? "1" : "0");
   287     arguments << (config->isAltDamageEnabled() ? "1" : "0");
   292     arguments << config->netNick().toUtf8().toBase64();
   288     arguments << config->netNick().toUtf8().toBase64();
   293     arguments << (config->isMusicEnabled() ? "1" : "0");
   289     arguments << (config->isMusicEnabled() ? "1" : "0");
   294     arguments << (config->isReducedQuality() ? "1" : "0");
   290     arguments << QString::number(config->translateQuality());
   295     arguments << (config->isStereoEnabled() ? "1" : "0");
   291     arguments << (config->isStereoEnabled() ? "1" : "0");
   296     return arguments;
   292     return arguments;
   297 }
   293 }
   298 
   294 
   299 void HWGame::AddTeam(const QString & teamname)
   295 void HWGame::AddTeam(const QString & teamname)