equal
deleted
inserted
replaced
245 //list all available Graves |
245 //list all available Graves |
246 Graves.append(HWDataManager::instance().entryList( |
246 Graves.append(HWDataManager::instance().entryList( |
247 "Graphics/Graves", |
247 "Graphics/Graves", |
248 QDir::Files, |
248 QDir::Files, |
249 QStringList("*.png") |
249 QStringList("*.png") |
250 ).replaceInStrings(QRegExp("^(.*)\\.png"), "\\1") |
250 ).replaceInStrings(QRegExp("\\.png$"), "") |
251 ); |
251 ); |
252 |
252 |
253 if(Graves.size()==0) |
253 if(Graves.size()==0) |
254 { |
254 { |
255 // TODO do some serious error handling |
255 // TODO do some serious error handling |
267 //list all available Forts |
267 //list all available Forts |
268 Forts.append(HWDataManager::instance().entryList( |
268 Forts.append(HWDataManager::instance().entryList( |
269 "Forts", |
269 "Forts", |
270 QDir::Files, |
270 QDir::Files, |
271 QStringList("*L.png") |
271 QStringList("*L.png") |
272 ).replaceInStrings(QRegExp("^(.*)L\\.png"), "\\1") |
272 ).replaceInStrings(QRegExp("L\\.png$"), "") |
273 ); |
273 ); |
274 |
274 |
275 if(Forts.size()==0) |
275 if(Forts.size()==0) |
276 { |
276 { |
277 // TODO do some serious error handling |
277 // TODO do some serious error handling |