diff options
Diffstat (limited to 'confui/main.cpp')
-rw-r--r-- | confui/main.cpp | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/confui/main.cpp b/confui/main.cpp index 6c3ab56..ae52a61 100644 --- a/confui/main.cpp +++ b/confui/main.cpp @@ -1,10 +1,18 @@ +#include "main.h" #include "mainwindow.h" -#include <QApplication> +extern "C" { +static const uint16_t _test = 1; +static const uint8_t *_ptest = (uint8_t *)&_test; +uint8_t g_cd_endianness; +} + +CDMainWindow* g_cd_main_window = nullptr; int main(int argc, char *argv[]) { - QApplication a(argc, argv); - CDMainWindow w; - w.show(); - return a.exec(); + g_cd_endianness = *_ptest; + g_cd_app = new QApplication(argc, argv); + g_cd_main_window = new CDMainWindow(); + g_cd_main_window->show(); + return g_cd_app->exec(); } |