mirror of
https://github.com/encounter/SDL.git
synced 2025-12-12 22:56:09 +00:00
WinRT: Move Windows::Foundation::Initialize to SDL2.dll, from SDL_main.
This allows C# UWP applications to use SDL2's SDL_WinRTRunApp function. Kudos to Ethan Lee (flibitijibibo@flibitijibibo.com) for the patch. Thanks!
This commit is contained in:
@@ -50,10 +50,5 @@
|
||||
|
||||
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
||||
{
|
||||
if (FAILED(Windows::Foundation::Initialize(RO_INIT_MULTITHREADED))) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
SDL_WinRTRunApp(SDL_main, NULL);
|
||||
return 0;
|
||||
return SDL_WinRTRunApp(SDL_main, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user