diff options
author | Brad Hughes <bradhugh@outlook.com> | 2016-04-10 17:18:23 -0400 |
---|---|---|
committer | Brad Hughes <bradhugh@outlook.com> | 2016-04-10 17:18:23 -0400 |
commit | ea0a6844f7d1afa89d7fbc6680e0bb5661417875 (patch) | |
tree | a28f4be6dd178f1f9ec51f2c31a5a9a0631af19c /src/osd/windows/main.cpp | |
parent | c4d91605fce01ecc1ec77219366b8cae4422c1e1 (diff) |
Skeleton implementation for Universal windows main app classes.
Diffstat (limited to 'src/osd/windows/main.cpp')
-rw-r--r-- | src/osd/windows/main.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/osd/windows/main.cpp b/src/osd/windows/main.cpp index 4ef0baf1c98..6e7717349bb 100644 --- a/src/osd/windows/main.cpp +++ b/src/osd/windows/main.cpp @@ -17,6 +17,8 @@ #include "strconv.h" +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + extern int utf8_main(int argc, char *argv[]); //============================================================ // main @@ -50,3 +52,18 @@ extern "C" int _tmain(int argc, TCHAR **argv) return rc; } #endif + +#else + +#include "winmain.h" + +// The main function is only used to initialize our IFrameworkView class. +[Platform::MTAThread] +int main(Platform::Array<Platform::String^>^) +{ + auto app_source = ref new MameViewSource(); + Windows::ApplicationModel::Core::CoreApplication::Run(app_source); + return 0; +} + +#endif |