src/main.cc

changeset 784
f82ab4d3c7b4
parent 769
8bb3bed44570
child 789
4b7306f52bb5
equal deleted inserted replaced
783:1db20d88650f 784:f82ab4d3c7b4
32 #include "glRenderer.h" 32 #include "glRenderer.h"
33 #include "configDialog.h" 33 #include "configDialog.h"
34 #include "dialogs.h" 34 #include "dialogs.h"
35 #include "crashCatcher.h" 35 #include "crashCatcher.h"
36 36
37 QList<LDDocument*> g_loadedFiles;
38 MainWindow* g_win = null; 37 MainWindow* g_win = null;
39 static String g_versionString, g_fullVersionString; 38 static String g_versionString, g_fullVersionString;
40 39
41 const Vertex g_origin (0.0f, 0.0f, 0.0f); 40 const Vertex g_origin (0.0f, 0.0f, 0.0f);
42 const Matrix g_identity ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f}); 41 const Matrix g_identity ({1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 1.0f});
49 { 48 {
50 QApplication app (argc, argv); 49 QApplication app (argc, argv);
51 app.setOrganizationName (APPNAME); 50 app.setOrganizationName (APPNAME);
52 app.setApplicationName (APPNAME); 51 app.setApplicationName (APPNAME);
53 initCrashCatcher(); 52 initCrashCatcher();
54 LDDocument::setCurrent (null);
55 53
56 // Load or create the configuration 54 // Load or create the configuration
57 if (not Config::load()) 55 if (not Config::load())
58 { 56 {
59 print ("Creating configuration file...\n"); 57 print ("Creating configuration file...\n");

mercurial