204 if (!isKnownVersion (zanversion)) { |
204 if (!isKnownVersion (zanversion)) { |
205 error (tr ("Failure in configuration! This shouldn't happen.")); |
205 error (tr ("Failure in configuration! This shouldn't happen.")); |
206 return 6; |
206 return 6; |
207 } |
207 } |
208 } |
208 } |
209 |
209 |
210 QSettings cfg; |
210 QSettings cfg; |
211 str binarypath = cfg.value (binaryConfigName (zanversion)).toString(); |
211 str binarypath = cfg.value (binaryConfigName (zanversion)).toString(); |
212 |
212 |
213 if (binarypath.isEmpty()) { |
213 if (binarypath.isEmpty()) { |
214 error (fmt (tr ("No binary path specified for Zandronum version %1!"), zanversion)); |
214 error (fmt (tr ("No binary path specified for Zandronum version %1!"), zanversion)); |
215 return 7; |
215 return 7; |
216 } |
216 } |
217 |
217 |
218 str iwadpath; |
218 str iwadpath; |
219 list<str> pwadpaths; |
219 list<str> pwadpaths; |
220 |
220 |
221 // Find the WADs |
221 // Find the WADs |
222 for (const str& wad : wads) { |
222 for (const str& wad : wads) { |