38 |
38 |
39 // ============================================================================= |
39 // ============================================================================= |
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
41 // ============================================================================= |
41 // ============================================================================= |
42 int main (int argc, char* argv[]) { |
42 int main (int argc, char* argv[]) { |
|
43 const QApplication app (argc, argv); |
|
44 |
43 // Load or create the configuration |
45 // Load or create the configuration |
44 if (!config::load ()) { |
46 if (!config::load ()) { |
45 printf ("Creating configuration file...\n"); |
47 printf ("Creating configuration file...\n"); |
46 if (config::save ()) |
48 if (config::save ()) |
47 printf ("Configuration file successfully created.\n"); |
49 printf ("Configuration file successfully created.\n"); |
48 else |
50 else |
49 printf ("failed to create configuration file!\n"); |
51 printf ("failed to create configuration file!\n"); |
50 } |
52 } |
51 |
53 |
52 const QApplication app (argc, argv); |
|
53 LDPaths::initPaths (); |
54 LDPaths::initPaths (); |
54 |
55 |
55 initColors (); |
56 initColors (); |
56 initPartList (); |
57 initPartList (); |
57 |
58 |