diff options
Diffstat (limited to 'src/osd/winui/mui_main.cpp')
-rw-r--r-- | src/osd/winui/mui_main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/osd/winui/mui_main.cpp b/src/osd/winui/mui_main.cpp new file mode 100644 index 00000000000..31ba3db2e38 --- /dev/null +++ b/src/osd/winui/mui_main.cpp @@ -0,0 +1,22 @@ +// For licensing and usage information, read docs/winui_license.txt +//**************************************************************************** +#ifndef WINUI +#define WINUI +#endif + +// import the main() from MAME, but rename it so we can call it indirectly +#undef main +#undef wmain +#define main mame_main +#define wmain mame_main +#include "windows/main.cpp" +#undef main +#undef wmain + +#include "winui.h" + + +int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) +{ + return MameUIMain(hInstance, lpCmdLine, nCmdShow); +} |