40 |
40 |
41 const Vertex Origin (0.0f, 0.0f, 0.0f); |
41 const Vertex Origin (0.0f, 0.0f, 0.0f); |
42 const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
42 const Matrix IdentityMatrix ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); |
43 |
43 |
44 CFGENTRY (Bool, FirstStart, true) |
44 CFGENTRY (Bool, FirstStart, true) |
|
45 #include "ldproject.h" |
45 |
46 |
46 // ============================================================================= |
47 // ============================================================================= |
47 // |
48 // |
48 int main (int argc, char* argv[]) |
49 int main (int argc, char* argv[]) |
49 { |
50 { |
50 QApplication app (argc, argv); |
51 QApplication app (argc, argv); |
|
52 |
|
53 LDProjectPtr proj = LDProject::LoadFromFile("argh.pk3"); |
|
54 if (!proj) |
|
55 Critical ("Couldn't open argh.pk3"); |
|
56 return 0; |
51 app.setOrganizationName (APPNAME); |
57 app.setOrganizationName (APPNAME); |
52 app.setApplicationName (APPNAME); |
58 app.setApplicationName (APPNAME); |
53 InitCrashCatcher(); |
59 InitCrashCatcher(); |
54 Config::Initialize(); |
60 Config::Initialize(); |
55 |
61 |