equal
deleted
inserted
replaced
225 engine.mount(datadir->absolutePath()); |
225 engine.mount(datadir->absolutePath()); |
226 engine.mount(cfgdir->absolutePath() + "/Data"); |
226 engine.mount(cfgdir->absolutePath() + "/Data"); |
227 engine.mount(cfgdir->absolutePath(), "/config"); |
227 engine.mount(cfgdir->absolutePath(), "/config"); |
228 engine.setWriteDir(cfgdir->absolutePath()); |
228 engine.setWriteDir(cfgdir->absolutePath()); |
229 |
229 |
230 DataManager & dataMgr = DataManager::instance(); |
|
231 |
|
232 QTranslator Translator; |
230 QTranslator Translator; |
233 { |
231 { |
234 QSettings settings("physfs://config/hedgewars.ini", QSettings::IniFormat); |
232 QSettings settings("physfs://config/hedgewars.ini", QSettings::IniFormat); |
235 QString cc = settings.value("misc/locale", QString()).toString(); |
233 QString cc = settings.value("misc/locale", QString()).toString(); |
236 if(cc.isEmpty()) |
234 if(cc.isEmpty()) |
278 default : |
276 default : |
279 fname = "qt.css"; |
277 fname = "qt.css"; |
280 } |
278 } |
281 |
279 |
282 // load external stylesheet if there is any |
280 // load external stylesheet if there is any |
283 QFile extFile(dataMgr.findFileForRead("css/" + fname)); |
281 QFile extFile("physfs://css/" + fname); |
284 |
282 |
285 QFile resFile(":/res/css/" + fname); |
283 QFile resFile(":/res/css/" + fname); |
286 |
284 |
287 QFile & file = (extFile.exists() ? extFile : resFile); |
285 QFile & file = (extFile.exists() ? extFile : resFile); |
288 |
286 |