]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/main.cpp
Rename to libmspcore
[libs/core.git] / source / core / main.cpp
diff --git a/source/core/main.cpp b/source/core/main.cpp
new file mode 100644 (file)
index 0000000..4b187c3
--- /dev/null
@@ -0,0 +1,22 @@
+/*
+This file is part of libmspframework
+Copyright © 2006 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+#ifdef WIN32
+#include <windows.h>
+#endif
+
+#include "application.h"
+
+#ifdef WIN32
+int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
+{ 
+       int argc        = 0;
+       LPWSTR *argv    = CommandLineToArgvW(GetCommandLineW(), &argc);
+       return Msp::Application::run(argc, (char **)argv);
+}
+#endif
+
+int main(int argc, char **argv)
+{ return Msp::Application::run(argc, argv); }