QTfrontend/ui/widget/selectWeapon.cpp
branchflibqtfrontend
changeset 8282 1f81bcce3ee6
parent 7830 72e52da6ea7f
equal deleted inserted replaced
8280:734b069a418e 8282:1f81bcce3ee6
    82 
    82 
    83 SelWeaponWidget::SelWeaponWidget(int numItems, QWidget* parent) :
    83 SelWeaponWidget::SelWeaponWidget(int numItems, QWidget* parent) :
    84     QFrame(parent),
    84     QFrame(parent),
    85     m_numItems(numItems)
    85     m_numItems(numItems)
    86 {
    86 {
    87     wconf = new QSettings(cfgdir->absolutePath() + "/weapons.ini", QSettings::IniFormat, this);
    87     wconf = new QSettings("physfs://weapons.ini", QSettings::IniFormat, this);
    88 
    88 
    89     for(int i = 0; i < cDefaultAmmos.size(); ++i)
    89     for(int i = 0; i < cDefaultAmmos.size(); ++i)
    90         wconf->setValue(cDefaultAmmos[i].first, cDefaultAmmos[i].second);
    90         wconf->setValue(cDefaultAmmos[i].first, cDefaultAmmos[i].second);
    91 
    91 
    92     QStringList keys = wconf->allKeys();
    92     QStringList keys = wconf->allKeys();