37 qRegisterMetaTypeStreamOperators<ZandronumVersion> ("ZandronumVersion"); |
37 qRegisterMetaTypeStreamOperators<ZandronumVersion> ("ZandronumVersion"); |
38 |
38 |
39 for (int i = 1; i < argc; ++i) |
39 for (int i = 1; i < argc; ++i) |
40 { |
40 { |
41 QString arg = argv[i]; |
41 QString arg = argv[i]; |
42 |
42 |
43 if (arg == "--config") |
43 if (arg == "--config") |
44 { |
44 { |
45 ConfigWindow dlg; |
45 ConfigWindow dlg; |
46 return dlg.exec(); |
46 return dlg.exec(); |
47 } |
47 } |
48 } |
48 } |
49 |
49 |
50 if (argc > 1) |
50 if (argc > 1) |
51 { |
51 { |
52 return launchDemo (argv[1]); |
52 return launchDemo (argv[1]); |
53 } |
53 } |
54 else |
54 else |