summaryrefslogtreecommitdiffhomepage
path: root/variant/default/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'variant/default/main.cpp')
-rw-r--r--variant/default/main.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/variant/default/main.cpp b/variant/default/main.cpp
new file mode 100644
index 00000000..80f7e495
--- /dev/null
+++ b/variant/default/main.cpp
@@ -0,0 +1,20 @@
+#include "gui/init.hpp"
+#include "gui/main-window.hpp"
+
+#if defined _WIN32
+# include <windows.h>
+#endif
+
+int main(int argc, char** argv)
+{
+ return run_application(argc, argv, []() { return new main_window; });
+}
+
+#if defined _MSC_VER
+int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int /* nCmdShow */)
+{
+ return main(__argc, __argv);
+}
+#endif
+
+