19 #include <QFile> |
19 #include <QFile> |
20 #include <QDataStream> |
20 #include <QDataStream> |
21 #include <QMessageBox> |
21 #include <QMessageBox> |
22 #include <QProcess> |
22 #include <QProcess> |
23 #include <errno.h> |
23 #include <errno.h> |
|
24 #include <assert.h> |
24 #include <commonlib/misc.h> |
25 #include <commonlib/misc.h> |
25 #include <commonlib/config.h> |
26 #include <commonlib/config.h> |
26 #include <commonlib/version.h> |
27 #include <commonlib/version.h> |
27 #include "demo.h" |
28 #include "demo.h" |
28 #include "prompts.h" |
29 #include "prompts.h" |
300 { |
309 { |
301 QDialog* prompt = new UnknownVersionPrompt (path, zanversion, (buildID == ReleaseBuild)); |
310 QDialog* prompt = new UnknownVersionPrompt (path, zanversion, (buildID == ReleaseBuild)); |
302 |
311 |
303 if (not prompt->exec()) |
312 if (not prompt->exec()) |
304 return 1; |
313 return 1; |
|
314 |
|
315 version = findVersion (zanversion); |
|
316 assert (not version.name.isNull()); |
305 } |
317 } |
306 |
318 |
307 QString iwadpath; |
319 QString iwadpath; |
308 QStringList pwadpaths; |
320 QStringList pwadpaths; |
309 |
321 |