src/main.cpp

changeset 41
e985ebb67fdd
parent 40
809a75a7113b
child 42
9528f8d06962
equal deleted inserted replaced
40:809a75a7113b 41:e985ebb67fdd
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
91 #ifdef HG_DATE_STRING 91 #ifdef HG_DATE_STRING
92 # define DATE_INFO " (" HG_DATE_STRING ")" 92 # define DATE_INFO " (" HG_DATE_STRING ")"
93 #else 93 #else
94 # define DATE_INFO "" 94 # define DATE_INFO ""
95 #endif 95 #endif
96 96
97 return QString (APPNAME) + " " + versionString() + DATE_INFO; 97 return QString (APPNAME) + " " + versionString() + DATE_INFO;
98 } 98 }

mercurial