equal
deleted
inserted
replaced
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(); |