]> git.tdb.fi Git - libs/core.git/blob - source/core/main.cpp
de62f75821bf11e0735b6a2d7f2264703d888782
[libs/core.git] / source / core / main.cpp
1 /*
2 This file is part of libmspcore
3 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
4 Distributed under the LGPL
5 */
6 #ifdef WIN32
7 #include <windows.h>
8 #endif
9
10 #include "application.h"
11
12 #ifdef WIN32
13 int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
14
15         int argc        = 0;
16         LPWSTR *argv    = CommandLineToArgvW(GetCommandLineW(), &argc);
17         return Msp::Application::run(argc, (char **)argv);
18 }
19 #endif
20
21 int main(int argc, char **argv)
22 { return Msp::Application::run(argc, argv); }